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 Record ¶
Record contains the information of the player's movement such as the position of the cell visited and visited cell's type
type StoryTeller ¶
type StoryTeller interface { // History returns the list of player's move. The iteration of the returned value // is not the same as iterating an array because the returned value is in the // implementation of a linked-list. History() *History // LastAction returns the player's recent move LastAction() Record }
StoryTeller is used to interface the instance of the Minesweeper game to retrieve certain information such as the history of all player's move and the player's recent action
Click to show internal directories.
Click to hide internal directories.