22 #define PLAY_MESSAGE_MAX_LENGTH 4096 void play_symetry(Play *, const int)
Get the symetry of the actual position.
Definition: play.c:1365
Thread thread
Definition: play.h:53
bool verbose
Definition: play.h:57
void play_game(Play *, const char *)
Play a move sequence.
Definition: play.c:813
bool play_must_pass(Play *play)
Check if player must pass.
Definition: play.c:202
The opening book.
Definition: book.h:25
void play_force_update(Play *)
Update a forced line.
Definition: play.c:1292
void play_save(Play *, const char *)
Save a played game.
Definition: play.c:131
void play_redo(Play *)
Redo a move.
Definition: play.c:742
void play_stop_pondering(Play *)
Stop pondering.
Definition: play.c:696
void * play_ponder_run(void *)
do ponderation.
Definition: play.c:609
void play_init(Play *, Book *)
Initialization.
Definition: play.c:27
PlayState
Definition: const.h:99
Board unique[80]
Definition: play.h:47
int i_move
Definition: play.h:50
int type
Definition: play.h:31
int initial_player
Definition: play.h:33
long long spent
Definition: play.h:41
int n_game
Definition: play.h:36
void play_update(Play *, Move *)
Update the game.
Definition: play.c:174
struct Play::@23 ponder[1]
Move move[80]
Definition: play.h:48
void play_book_analyze(Play *, int)
Analyze a played game.
Definition: play.c:1087
void play_ponder(Play *)
Ponder.
Definition: play.c:676
int i_game
Definition: play.h:35
long long left
Definition: play.h:42
void play_hint_prepare(Play *)
prepare hint for libEdax
Definition: play.c:512
void play_adjust_time(Play *, const int, const int)
adjust time.
Definition: play.c:1158
long long clock
Definition: play.h:39
void play_stop(Play *)
Stop thinking.
Definition: play.c:716
void play_set_board(Play *, const char *)
Set a new board.
Definition: play.c:757
void play_undo(Play *)
Undo a move.
Definition: play.c:726
int level
Definition: play.h:38
int player
Definition: play.h:32
char error_message[PLAY_MESSAGE_MAX_LENGTH]
Definition: play.h:59
bool play_is_game_over(Play *)
Check if game is over.
Definition: play.c:190
void play_hint(Play *, int)
Start thinking.
Definition: play.c:365
Miscellaneous utilities header.
long long extra
Definition: play.h:43
bool play_move(Play *, int)
Play a move.
Definition: play.c:836
Result result[1]
Definition: play.h:29
void play_set_board_from_FEN(Play *, const char *)
Set a new board.
Definition: play.c:775
bool play_force_go(Play *, Move *)
Play a forced move.
Definition: play.c:1331
Move game[80]
Definition: play.h:34
void play_hint_next(Play *, Hint *)
get next hint
Definition: play.c:536
Board board[1]
Definition: play.h:26
void play_set_board_from_obj(Play *, const Board *, const int)
Set a new board.
Definition: play.c:793
Board initial_board[1]
Definition: play.h:27
volatile PlayState state
Definition: play.h:37
void play_free(Play *)
Free resources.
Definition: play.c:52
void play_force_init(Play *, const char *)
Initialize a forced line.
Definition: play.c:1260
void play_hint_for_lib(Play *, int, HintList *)
hint for libEdax
Definition: play.c:439
void play_force_restore(Play *)
Restore a forced line.
Definition: play.c:1311
int n_move
Definition: play.h:49
void play_auto_save(Play *)
void play_print(Play *, FILE *)
Print the game state.
Definition: play.c:1172
void play_go(Play *, const bool)
Start thinking.
Definition: play.c:214
bool launched
Definition: play.h:56
Move * play_get_last_move(Play *)
Get the last played move.
Definition: play.c:874
const char * play_show_opening_name(Play *, const char *(*opening_get_name)(const Board *))
Print the opening name.
Definition: play.c:1385
void * play_ponder_loop(void *)
Search search[1]
Definition: play.h:28
#define PLAY_MESSAGE_MAX_LENGTH
Definition: play.h:22
Board real[80]
Definition: play.h:46
Lock lock
Definition: play.h:54
bool play_load(Play *, const char *)
Load a saved game.
Definition: play.c:84
void play_new(Play *)
Start a new game.
Definition: play.c:62
void play_store(Play *)
store the game into the opening book
Definition: play.c:1122
bool play_user_move(Play *, const char *)
Play a user move.
Definition: play.c:856
Book * book
Definition: play.h:30
void play_ggs_init(Play *, const char *)
void play_analyze(Play *, int)
Analyze a played game.
Definition: play.c:980