tic-tac-toe/game.go

24 lines
356 B
Go
Raw Normal View History

2023-12-29 11:42:21 +00:00
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
}