tic-tac-toe/game.go
2023-12-29 13:42:21 +02:00

23 lines
356 B
Go

package main
const (
GameStateInProgress int = 0
GameStateEnded = 1
GameStateDraw = 2
GameStateAIWon = 3
GameStateAILost = 4
)
type Game struct {
gameFlow string
aiSecond bool
}
func newGame(gameFlow string, aiSecond bool) *Game {
game := &Game{
gameFlow: gameFlow,
aiSecond: aiSecond,
}
return game
}