Documentation
¶
Index ¶
Constants ¶
View Source
const ( XSize = 80 ORadius = 40 )
View Source
const ( XPlayer = 1 OPlayer = 2 Draw = 3 DifficultyEasy = 101 DifficultyHard = 102 BoardSize = 9 )
Variables ¶
View Source
var ( XColor = color.RGBA{64, 140, 242, 0xff} OColor = color.RGBA{242, 140, 64, 0xff} )
View Source
var ( Title = "Tic Tac Toe" ScreenWidth = 300 ScreenHeight = 300 )
Functions ¶
func GetOponent ¶
Types ¶
type Board ¶
type Board struct {
// contains filtered or unexported fields
}
Board represents a board state.
func (*Board) Draw ¶
func (b *Board) Draw(boardImage *ebiten.Image)
Draw draws the board to the given boardImage.
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
Game represents a game state.
Click to show internal directories.
Click to hide internal directories.