Documentation ¶
Index ¶
Constants ¶
View Source
const ( Hidden = 0 Revealed = 1 Flagged = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Board ¶
type Board struct {
// contains filtered or unexported fields
}
func (*Board) DisplayNoHidden ¶
func (b *Board) DisplayNoHidden()
func (*Board) Play ¶
func (b *Board) Play(row, column int) PlayReturn
type IBoard ¶
type IBoard interface { NewBoard(numberRows, numberColumns, numberBombs, numberDugTiles int) *Board // create a new board Play(row, column int) // Play a square Flag(row, column int) // Flag a square Unflag(row, column int) // Unflag a square Display() // display board with hidden squares DisplayNoHidden() // display board without hidden squares }
type PlayRecursiveReturn ¶
type PlayReturn ¶
Click to show internal directories.
Click to hide internal directories.