added cats games to stats
This commit is contained in:
parent
511b1ef3f1
commit
7ab247e092
@ -4,6 +4,7 @@ class Stats {
|
|||||||
private var mGamesPlayed: Int = 0
|
private var mGamesPlayed: Int = 0
|
||||||
private var mGamesWonX: Int = 0
|
private var mGamesWonX: Int = 0
|
||||||
private var mGamesWonO: Int = 0
|
private var mGamesWonO: Int = 0
|
||||||
|
private var mGamesCats: Int = 0
|
||||||
private var mGamePiecesPlaced: Int = 0
|
private var mGamePiecesPlaced: Int = 0
|
||||||
|
|
||||||
fun updateGamesPlayed() {
|
fun updateGamesPlayed() {
|
||||||
@ -14,6 +15,7 @@ class Stats {
|
|||||||
when (gameState) {
|
when (gameState) {
|
||||||
Gameboard.GameState.GamePlayerWinX -> mGamesWonX++
|
Gameboard.GameState.GamePlayerWinX -> mGamesWonX++
|
||||||
Gameboard.GameState.GamePlayerWinO -> mGamesWonO++
|
Gameboard.GameState.GamePlayerWinO -> mGamesWonO++
|
||||||
|
Gameboard.GameState.GameCat -> mGamesCats++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user