示例#1
0
// Winner tells us who won.
func (g *Game) Winner() int {
	return tictactoe.Winner(g.ttt)
}
示例#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
}