Documentation
¶
Index ¶
- Constants
- type Board
- func (board Board) Contains(row uint, col uint, element string) bool
- func (board Board) FillWithBombs(bombs uint)
- func (board Board) HasEmptyCells() bool
- func (board Board) HideBombs() Board
- func (board Board) IsValidPosition(row uint, col uint) bool
- func (board Board) Set(row uint, col uint, element string)
- type BoardSettings
- type Game
Constants ¶
View Source
const ( CELL_BOMB = "X" CELL_EMPTY = "-" CELL_REVEALED = "O" CELL_BOMB_HIDED = "-" )
View Source
const ( GAME_STATE_WON = "won" GAME_STATE_LOST = "lost" GAME_STATE_NEW = "new" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Board ¶
type Board [][]string
func NewEmptyBoard ¶
func (Board) FillWithBombs ¶
func (Board) HasEmptyCells ¶
type BoardSettings ¶
Click to show internal directories.
Click to hide internal directories.