Module nogo::game_logic [] [src]

Structs

NogoBoard

the overall board -it holds state, but does not really do any processng on its own

Point

represents a point in the board

Enums

PlayerInput
PlayerType

Game related data structures

Constants

MAX_BOARD_DIMENSION
MIN_BOARD_DIMENSION

Some game constants

PLAYER_ONE
PLAYER_ZERO

Functions

continue_saved_game

Continue the game as saved in the save file. The way this will work is as follows - load the game metadata from the saved file, and recreate the state of the game from the board positions. Then continue the game from that juncture, with the player who had saved the file getting the first move in the new game

start_new_game

Start a fresh game