rendering

package
v0.0.0-...-b78434c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2018 License: GPL-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Position

type Position interface {
	// X returns the x-coordinate of the cell in the grid
	X() int

	// Y returns the y-coordinate of the cell in the grid
	Y() int
}

Position is used to interface the cell's xy-coordinates used for this package

type Printer

type Printer interface {
	Print()
}

Printer is used to print the game's current board

type Tracker

type Tracker interface {
	// BombLocations returns all the location of all mines in the grid
	BombLocations() []Position

	// HintLocations returns all the warning numbers in the grid
	HintLocations() []Position
}

Tracker is used to interface the instance of the Minesweeper game to retrieve certain information such as the location of all mines and the location of all non-zero warning values

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL