From 7ab247e0924e87373d3bb43dba2bc1fe49ff8670 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Sat, 19 Sep 2020 09:43:54 -0400 Subject: [PATCH] added cats games to stats --- app/src/main/java/com/wyattjmiller/tictactoeapp/Stats.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/wyattjmiller/tictactoeapp/Stats.kt b/app/src/main/java/com/wyattjmiller/tictactoeapp/Stats.kt index ddc1ce4..749e13e 100644 --- a/app/src/main/java/com/wyattjmiller/tictactoeapp/Stats.kt +++ b/app/src/main/java/com/wyattjmiller/tictactoeapp/Stats.kt @@ -4,6 +4,7 @@ class Stats { private var mGamesPlayed: Int = 0 private var mGamesWonX: Int = 0 private var mGamesWonO: Int = 0 + private var mGamesCats: Int = 0 private var mGamePiecesPlaced: Int = 0 fun updateGamesPlayed() { @@ -14,6 +15,7 @@ class Stats { when (gameState) { Gameboard.GameState.GamePlayerWinX -> mGamesWonX++ Gameboard.GameState.GamePlayerWinO -> mGamesWonO++ + Gameboard.GameState.GameCat -> mGamesCats++ } }