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++ } }