added cats games to stats

This commit is contained in:
Wyatt J. Miller 2020-09-19 09:43:54 -04:00
parent 511b1ef3f1
commit 7ab247e092

View File

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