-
Notifications
You must be signed in to change notification settings - Fork 0
/
game_aux.h
39 lines (33 loc) · 1.14 KB
/
game_aux.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* @file game_aux.h
* @brief Auxiliarry Game Functions.
* @details See @ref index for further details.
* @copyright University of Bordeaux. All rights reserved, 2021.
**/
#ifndef __GAME_AUX_H__
#define __GAME_AUX_H__
#include <stdbool.h>
#include "game.h"
/**
* @brief Prints a game as text on the standard output stream.
* @details The different squares are respectively displayed as text, based on a
* square-character mapping table, as described in @ref index.
* @param g the game
* @pre @p g must be a valid pointer toward a game structure.
**/
void game_print(cgame g);
/**
* @brief Creates the default game.
* @details See the description of the default game in @ref index.
* @details https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/lightup.html#7x7:b1f2iB2g1Bi2fBb
* @return the created game
**/
game game_default(void);
/**
* @brief Creates the default game solution.
* @details See the description of the default game in @ref index.
* @details https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/lightup.html#7x7:b1f2iB2g1Bi2fBb
* @return the created game
**/
game game_default_solution(void);
#endif // __GAME_AUX_H__