Mosaic
Functions
game_aux.h File Reference

Auxiliarry Game Functions. More...

#include "game.h"

Go to the source code of this file.

Functions

void game_print (cgame g)
 Prints a game as text on the standard output stream. More...
 
game game_default (void)
 Creates the default game. More...
 
game game_default_solution (void)
 Creates the default game solution. More...
 

Detailed Description

Auxiliarry Game Functions.

See Mosaic for further details.

Function Documentation

◆ game_default()

game game_default ( void  )

Creates the default game.

See the description of the default game in Mosaic.

Returns
the created game

◆ game_default_solution()

game game_default_solution ( void  )

Creates the default game solution.

See the description of the default game in Mosaic.

Returns
the created game

◆ game_print()

void game_print ( cgame  g)

Prints a game as text on the standard output stream.

The different squares are respectively displayed as text, as described in Mosaic.

Parameters
gthe game
Precondition
g must be a valid pointer toward a game structure.