Edax api. More...
#include "cassio.h"#include "event.h"#include "histogram.h"#include "options.h"#include "opening.h"#include "obftest.h"#include "perft.h"#include "play.h"#include "search.h"#include "util.h"#include "ui.h"Functions | |
| void | version (void) |
| Print version & copyright. More... | |
| DLL_API void | libedax_initialize (int argc, char **argv) |
| edax init function for library use. More... | |
| DLL_API void | libedax_terminate () |
| edax terminate function for library use. More... | |
| static void | libedax_observer (Result *result) |
| default search oberver for libedax. More... | |
| void | ui_init_libedax (UI *ui) |
| initialize libedax api. More... | |
| void | ui_free_libedax (UI *ui) |
| free resources used by libedax api. More... | |
| void | auto_go () |
| auto go with regard to mode. More... | |
| DLL_API void | edax_init () |
| init command. More... | |
| DLL_API void | edax_new () |
| new command. More... | |
| DLL_API void | edax_load (const char *file) |
| load command. More... | |
| DLL_API void | edax_save (const char *file) |
| save command. More... | |
| DLL_API void | edax_undo () |
| undo command. More... | |
| DLL_API void | edax_redo () |
| redo command. More... | |
| DLL_API void | edax_mode (const int mode) |
| mode command. More... | |
| DLL_API void | edax_setboard (const char *board) |
| setboard command. More... | |
| DLL_API void | edax_setboard_from_obj (const Board *board, const int turn) |
| setboard command with board object. More... | |
| DLL_API void | edax_vmirror () |
| vmirror command. More... | |
| DLL_API void | edax_hmirror () |
| hmirror command. More... | |
| DLL_API void | edax_rotate (const int angle) |
| rotate command. More... | |
| DLL_API void | edax_symetry (const int sym) |
| symetry command. More... | |
| DLL_API void | edax_play (char *moves) |
| play command. More... | |
| DLL_API void | edax_force (char *moves) |
| force command. More... | |
| DLL_API void | edax_go () |
| go command. More... | |
| DLL_API void | edax_hint (const int n, HintList *hintlist) |
| hint command. More... | |
| DLL_API void | edax_hint_prepare () |
| hint command. Call edax_hint_next after calling this function. More... | |
| DLL_API void | edax_hint_next (Hint *hint) |
| hint command. Gets hint one by one. If there are no more hints, hint will be NOMOVE. Call edax_hint_prepare before calling this function. More... | |
| DLL_API void | edax_stop () |
| stop command. More... | |
| DLL_API int | edax_move (const char *move) |
| user move command. More... | |
| DLL_API const char * | edax_opening () |
| opening command. More... | |
| DLL_API const char * | edax_ouverture () |
| ouverture command. More... | |
| void | book_cmd_pre_process (UI *ui) |
| pre-process of book command. More... | |
| void | book_cmd_post_process (UI *ui) |
| post-process of book command. More... | |
| DLL_API void | edax_book_store () |
| book store command. More... | |
| DLL_API void | edax_book_on () |
| book on command. More... | |
| DLL_API void | edax_book_off () |
| book off command. More... | |
| DLL_API void | edax_book_randomness (const int randomness) |
| book randomness command. More... | |
| DLL_API void | edax_book_depth (const int depth) |
| book depth command. More... | |
| DLL_API void | edax_book_new (const int level, const int depth) |
| book new command. More... | |
| DLL_API void | edax_book_load (const char *book_file) |
| book load command. More... | |
| DLL_API void | edax_book_save (const char *book_file) |
| book save command. More... | |
| DLL_API void | edax_book_import (const char *import_file) |
| book import command. More... | |
| DLL_API void | edax_book_export (const char *export_file) |
| book export command. More... | |
| DLL_API void | edax_book_merge (const char *book_file) |
| book merge command. More... | |
| DLL_API void | edax_book_fix () |
| book fix command. More... | |
| DLL_API void | edax_book_negamax () |
| book negamax command. More... | |
| DLL_API void | edax_book_correct () |
| book correct command. More... | |
| DLL_API void | edax_book_prune () |
| book prune command. More... | |
| DLL_API void | edax_book_subtree () |
| book subtree command. More... | |
| DLL_API void | edax_book_show (Position *position) |
| book show command. More... | |
| DLL_API void | edax_book_info (Book *book) |
| book info command. More... | |
| DLL_API void | edax_book_verbose (const int book_verbosity) |
| book verbose command. More... | |
| DLL_API void | edax_book_add (const char *base_file) |
| book add command. More... | |
| DLL_API void | edax_book_check (const char *base_file) |
| book check command. More... | |
| DLL_API void | edax_book_extract (const char *base_file) |
| book extract command. More... | |
| DLL_API void | edax_book_deviate (int relative_error, int absolute_error) |
| book deviate command. More... | |
| DLL_API void | edax_book_enhance (int midgame_error, int endcut_error) |
| book enhance command. More... | |
| DLL_API void | edax_book_fill (int fill_depth) |
| book fill command. More... | |
| DLL_API void | edax_book_play () |
| book play command. More... | |
| DLL_API void | edax_book_deepen () |
| book deepen command. caution: Currently, this function does not work correctly. More... | |
| DLL_API void | edax_book_feed_hash () |
| book feed-hash command. More... | |
| DLL_API void | edax_base_problem (const char *base_file, const int n_empties, const char *problem_file) |
| base problem command. More... | |
| DLL_API void | edax_base_tofen (const char *base_file, const int n_empties, const char *problem_file) |
| base tofen command. More... | |
| DLL_API void | edax_base_correct (const char *base_file, const int n_empties) |
| base correct command. More... | |
| DLL_API void | edax_base_complete (const char *base_file) |
| base complete command. More... | |
| DLL_API void | edax_base_convert (const char *base_file_from, const char *base_file_to) |
| base convert command. More... | |
| DLL_API void | edax_base_unique (const char *base_file_from, const char *base_file_to) |
| base unique command. More... | |
| DLL_API void | edax_set_option (const char *option_name, const char *val) |
| set (option) command. More... | |
| DLL_API char * | edax_get_moves (char *str) |
| get moves of the current game. More... | |
| DLL_API int | edax_is_game_over () |
| check if the current game is over. More... | |
| DLL_API int | edax_can_move () |
| check if the current player can move. More... | |
| DLL_API void | edax_get_last_move (Move *move) |
| get last move. More... | |
| DLL_API void | edax_get_board (Board *board) |
| get current board. More... | |
| DLL_API int | edax_get_current_player () |
| get current player. More... | |
| DLL_API int | edax_get_disc (const int color) |
| get current number of discs. More... | |
| DLL_API int | edax_get_mobility_count (const int color) |
| get current number of legal moves. More... | |
Variables | |
| bool | book_verbose |
| UI * | g_ui |
Edax api.
| void auto_go | ( | ) |
auto go with regard to mode.
| void book_cmd_post_process | ( | UI * | ui | ) |
post-process of book command.
| ui | user interface. |
| void book_cmd_pre_process | ( | UI * | ui | ) |
pre-process of book command.
| ui | user interface. |
| DLL_API void edax_base_complete | ( | const char * | base_file | ) |
base complete command.
| base_file | game database file. |
| DLL_API void edax_base_convert | ( | const char * | base_file_from, |
| const char * | base_file_to | ||
| ) |
base convert command.
| base_file_from | input game database file. |
| base_file_to | output game database file. |
| DLL_API void edax_base_correct | ( | const char * | base_file, |
| const int | n_empties | ||
| ) |
base correct command.
| base_file | game database file. |
| n_empties | number of empties. |
| DLL_API void edax_base_problem | ( | const char * | base_file, |
| const int | n_empties, | ||
| const char * | problem_file | ||
| ) |
base problem command.
| base_file | game database file. |
| n_empties | number of empties. |
| problem_file | problem_file to save. |
| DLL_API void edax_base_tofen | ( | const char * | base_file, |
| const int | n_empties, | ||
| const char * | problem_file | ||
| ) |
base tofen command.
| base_file | game database file. |
| n_empties | number of empties. |
| problem_file | problem_file to save. |
| DLL_API void edax_base_unique | ( | const char * | base_file_from, |
| const char * | base_file_to | ||
| ) |
base unique command.
| base_file_from | input game database file. |
| base_file_to | output game database file. |
| DLL_API void edax_book_add | ( | const char * | base_file | ) |
book add command.
| base_file | base file to add. |
| DLL_API void edax_book_check | ( | const char * | base_file | ) |
book check command.
| base_file | base file to check. |
| DLL_API void edax_book_correct | ( | ) |
book correct command.
| DLL_API void edax_book_deepen | ( | ) |
book deepen command. caution: Currently, this function does not work correctly.
| DLL_API void edax_book_depth | ( | const int | depth | ) |
book depth command.
| depth | depth. |
| DLL_API void edax_book_deviate | ( | int | relative_error, |
| int | absolute_error | ||
| ) |
book deviate command.
| relative_error | relative error. |
| absolute_error | absolute error. |
| DLL_API void edax_book_enhance | ( | int | midgame_error, |
| int | endcut_error | ||
| ) |
book enhance command.
| midgame_error | midgame error. |
| endcut_error | endcut error. |
| DLL_API void edax_book_export | ( | const char * | export_file | ) |
book export command.
| export_file | file name to export. |
| DLL_API void edax_book_extract | ( | const char * | base_file | ) |
book extract command.
| base_file | base file to extract. |
| DLL_API void edax_book_feed_hash | ( | ) |
book feed-hash command.
| DLL_API void edax_book_fill | ( | int | fill_depth | ) |
book fill command.
| fill_depth | fill depth. |
| DLL_API void edax_book_fix | ( | ) |
book fix command.
| DLL_API void edax_book_import | ( | const char * | import_file | ) |
book import command.
| import_file | file name to import. |
book info command.
| book | book information(out parameter). |
| DLL_API void edax_book_load | ( | const char * | book_file | ) |
book load command.
| book_file | book file name to load. |
| DLL_API void edax_book_merge | ( | const char * | book_file | ) |
book merge command.
| book_file | file name to merge. |
| DLL_API void edax_book_negamax | ( | ) |
book negamax command.
| DLL_API void edax_book_new | ( | const int | level, |
| const int | depth | ||
| ) |
book new command.
| level | level. |
| depth | depth. |
| DLL_API void edax_book_off | ( | ) |
book off command.
| DLL_API void edax_book_on | ( | ) |
book on command.
| DLL_API void edax_book_play | ( | ) |
book play command.
| DLL_API void edax_book_prune | ( | ) |
book prune command.
| DLL_API void edax_book_randomness | ( | const int | randomness | ) |
book randomness command.
| randomness | randomness. |
| DLL_API void edax_book_save | ( | const char * | book_file | ) |
book save command.
| book_file | book file name to save. |
book show command.
| position | position information(out parameter). |
| DLL_API void edax_book_store | ( | ) |
book store command.
| DLL_API void edax_book_subtree | ( | ) |
book subtree command.
| DLL_API void edax_book_verbose | ( | const int | book_verbosity | ) |
book verbose command.
| book_verbosity | book verbosity. |
| DLL_API int edax_can_move | ( | ) |
check if the current player can move.
| DLL_API void edax_force | ( | char * | moves | ) |
force command.
| moves | moves. |
get current board.
| board | current board(out parameter). |
| DLL_API int edax_get_current_player | ( | ) |
get current player.
| DLL_API int edax_get_disc | ( | const int | color | ) |
get current number of discs.
| color | player's color(0:BLACK, 1:WHITE). |
get last move.
| move | last move(out parameter). |
| DLL_API int edax_get_mobility_count | ( | const int | color | ) |
get current number of legal moves.
| color | player's color(0:BLACK, 1:WHITE). |
| DLL_API char* edax_get_moves | ( | char * | str | ) |
get moves of the current game.
| str | buffer of length 160 + 1 or more (out parameter). |
| DLL_API void edax_go | ( | ) |
go command.
hint command.
| n | number of hints. |
| hintlist | result (out parameter). |
hint command. Gets hint one by one. If there are no more hints, hint will be NOMOVE. Call edax_hint_prepare before calling this function.
| n | number of hints. |
| hintlist | result (out parameter). |
| DLL_API void edax_hint_prepare | ( | ) |
hint command. Call edax_hint_next after calling this function.
| DLL_API void edax_hmirror | ( | ) |
hmirror command.
| DLL_API void edax_init | ( | ) |
init command.
| DLL_API int edax_is_game_over | ( | ) |
check if the current game is over.
| DLL_API void edax_load | ( | const char * | file | ) |
load command.
| file | file name to open |
| DLL_API void edax_mode | ( | const int | mode | ) |
mode command.
| mode | mode to set |
| DLL_API int edax_move | ( | const char * | move | ) |
user move command.
| move | user move. |
| DLL_API void edax_new | ( | ) |
new command.
| DLL_API const char* edax_opening | ( | ) |
opening command.
| DLL_API const char* edax_ouverture | ( | ) |
ouverture command.
| DLL_API void edax_play | ( | char * | moves | ) |
play command.
| moves | moves. |
| DLL_API void edax_redo | ( | ) |
redo command.
| DLL_API void edax_rotate | ( | const int | angle | ) |
rotate command.
| angle | angle for rotation |
| DLL_API void edax_save | ( | const char * | file | ) |
save command.
| file | file name to save |
| DLL_API void edax_set_option | ( | const char * | option_name, |
| const char * | val | ||
| ) |
set (option) command.
| option_name | name of option. |
| val | value to set. |
| DLL_API void edax_setboard | ( | const char * | board | ) |
setboard command.
| board | board to set |
setboard command with board object.
| board | board to set |
| turn | player to play |
| DLL_API void edax_stop | ( | ) |
stop command.
| DLL_API void edax_symetry | ( | const int | sym | ) |
symetry command.
| sym | symetry. |
| DLL_API void edax_undo | ( | ) |
undo command.
| DLL_API void edax_vmirror | ( | ) |
vmirror command.
| DLL_API void libedax_initialize | ( | int | argc, |
| char ** | argv | ||
| ) |
edax init function for library use.
| argc | Number of arguments. |
| argv | Command line arguments. |
|
static |
| DLL_API void libedax_terminate | ( | ) |
edax terminate function for library use.
| void ui_free_libedax | ( | UI * | ui | ) |
free resources used by libedax api.
| ui | user interface. |
| void ui_init_libedax | ( | UI * | ui | ) |
initialize libedax api.
| ui | user interface. |
| void version | ( | void | ) |
Print version & copyright.
| bool book_verbose |
| UI* g_ui |
1.8.14