Documentation
¶
Index ¶
Constants ¶
View Source
const BOARD_SIDE_LENGTH = 3
View Source
const MaxInt = int(MaxUint >> 1)
View Source
const MaxUint = ^uint(0)
Max val constants
View Source
const MinInt = -MaxInt - 1
View Source
const MinUint = 0
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Board ¶
type Board struct {
// contains filtered or unexported fields
}
func (*Board) CheckForWin ¶
func (board *Board) CheckForWin() square
func (*Board) CheckGoodMove ¶
type BotPlayer ¶
type BotPlayer struct {
// contains filtered or unexported fields
}
func NewBotPlayer ¶
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
func (*Game) Loop ¶
func (g *Game) Loop() GameResult
type GameResult ¶
type GameResult int
const ( Cross GameResult = iota Draw GameResult = iota Nought GameResult = iota )
type HumanPlayer ¶
type HumanPlayer struct{}
func (*HumanPlayer) IsHuman ¶
func (p *HumanPlayer) IsHuman() bool
type RandomPlayer ¶
type RandomPlayer struct{}
func (*RandomPlayer) IsHuman ¶
func (p *RandomPlayer) IsHuman() bool
Click to show internal directories.
Click to hide internal directories.