Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Game ¶
type Game struct { ID string `json:"id"` Grid [][]*Cell Status GameStatus NumFlagged int GameConfig }
func NewGame ¶
func NewGame(config GameConfig) *Game
type GameConfig ¶
var ( Beginner GameConfig = GameConfig{8, 8, 10} Intermediate GameConfig = GameConfig{16, 16, 40} Expert GameConfig = GameConfig{24, 24, 99} )
type GameStatus ¶
type GameStatus int
const ( GameStatusLost GameStatus = iota GameStatusWon GameStatusInProgress )
Click to show internal directories.
Click to hide internal directories.