Beispiel #1
0
// Winner tells us who won.
func (g *Game) Winner() int {
	return tictactoe.Winner(g.ttt)
}
Beispiel #2
0
// InProgress tells us if a Game is currently underway or if the game is over
func (g *Game) InProgress() bool {
	return tictactoe.Winner(g.ttt) == 0
}