Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Game ¶
type Game struct { State struct { GameOver bool // contains filtered or unexported fields } // contains filtered or unexported fields }
func (*Game) BoardDimensions ¶
func (*Game) BoardString ¶
func (*Game) RevealAt ¶
Reveals the tile at a given position (x, y)
If chain is true, the block of adjacent safe tiles containing this tile is fully revealed
Sets the game over state to true if the revealed tile was a mine
func (*Game) SmartReveal ¶
func (*Game) ToggleFlaggedAt ¶
func (*Game) UnflaggedMines ¶
Click to show internal directories.
Click to hide internal directories.