Documentation ¶ Index ¶ Constants func GameOver(board Board) bool func HasMoves(board Board, player Disk) bool func KeepScore(board Board) (p1 int, p2 int) type Board func ApplyMove(board Board, x int, y int, player Disk) (Board, bool) func (b Board) String() string type Disk Constants ¶ View Source const ( Player1 = Disk(1) Player2 = Disk(2) ) View Source const BoardSize = 8 Variables ¶ This section is empty. Functions ¶ func GameOver ¶ func GameOver(board Board) bool func HasMoves ¶ func HasMoves(board Board, player Disk) bool func KeepScore ¶ func KeepScore(board Board) (p1 int, p2 int) Types ¶ type Board ¶ type Board [BoardSize][BoardSize]Disk func ApplyMove ¶ func ApplyMove(board Board, x int, y int, player Disk) (Board, bool) func (Board) String ¶ func (b Board) String() string type Disk ¶ type Disk uint8 Source Files ¶ View all Source files board.go referee.go Click to show internal directories. Click to hide internal directories.