|
My Project
|
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. | |
| DLL_API void | libedax_initialize (int argc, char **argv) |
| edax init function for library use. | |
| DLL_API void | libedax_terminate () |
| edax terminate function for library use. | |
| static void | libedax_observer (Result *result) |
| default search oberver for libedax. | |
| void | ui_init_libedax (UI *ui) |
| initialize libedax api. | |
| void | ui_free_libedax (UI *ui) |
| free resources used by libedax api. | |
| void | auto_go () |
| auto go with regard to mode. | |
| DLL_API void | edax_init () |
| init command. | |
| DLL_API void | edax_new () |
| new command. | |
| DLL_API void | edax_load (const char *file) |
| load command. | |
| DLL_API void | edax_save (const char *file) |
| save command. | |
| DLL_API void | edax_undo () |
| undo command. | |
| DLL_API void | edax_redo () |
| redo command. | |
| DLL_API void | edax_mode (const int mode) |
| mode command. | |
| DLL_API void | edax_setboard (const char *board) |
| setboard command. | |
| DLL_API void | edax_setboard_from_obj (const Board *board, const int turn) |
| setboard command with board object. | |
| DLL_API void | edax_vmirror () |
| vmirror command. | |
| DLL_API void | edax_hmirror () |
| hmirror command. | |
| DLL_API void | edax_rotate (const int angle) |
| rotate command. | |
| DLL_API void | edax_symetry (const int sym) |
| symetry command. | |
| DLL_API void | edax_play (char *moves) |
| play command. | |
| DLL_API void | edax_force (char *moves) |
| force command. | |
| DLL_API void | edax_bench (BenchResult *result, int n) |
| bench (a serie of low level tests). command. | |
| DLL_API void | edax_bench_get_result (BenchResult *result) |
| DLL_API void | edax_go () |
| go command. | |
| DLL_API void | edax_hint (const int n, HintList *hintlist) |
| hint command. | |
| DLL_API void | edax_get_bookmove (MoveList *move_list) |
| get book moves. | |
| DLL_API int | edax_get_bookmove_with_position (MoveList *move_list, Position *position) |
| get book moves. | |
| DLL_API int | edax_get_bookmove_with_position_by_moves (const char *moves, MoveList *move_list, Position *position) |
| get book moves. | |
| DLL_API void | edax_hint_prepare (MoveList *exclude_list) |
| hint command. Call edax_hint_next after calling this function. | |
| 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. | |
| DLL_API void | edax_hint_next_no_multipv_depth (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. This command is for analyze use. | |
| DLL_API void | edax_stop () |
| stop command. | |
| DLL_API void | edax_version () |
| version command. | |
| DLL_API int | edax_move (const char *move) |
| user move command. | |
| DLL_API void | edax_options_dump () |
| dump options. | |
| DLL_API const char * | edax_opening () |
| opening command. | |
| DLL_API const char * | edax_ouverture () |
| ouverture command. | |
| void | book_cmd_pre_process (UI *ui) |
| pre-process of book command. | |
| void | book_cmd_post_process (UI *ui) |
| post-process of book command. | |
| DLL_API void | edax_book_store () |
| book store command. | |
| DLL_API void | edax_book_on () |
| book on command. | |
| DLL_API void | edax_book_off () |
| book off command. | |
| DLL_API void | edax_book_randomness (const int randomness) |
| book randomness command. | |
| DLL_API void | edax_book_depth (const int depth) |
| book depth command. | |
| DLL_API void | edax_book_new (const int level, const int depth) |
| book new command. | |
| DLL_API void | edax_book_load (const char *book_file) |
| book load command. | |
| DLL_API void | edax_book_save (const char *book_file) |
| book save command. | |
| DLL_API void | edax_book_import (const char *import_file) |
| book import command. | |
| DLL_API void | edax_book_export (const char *export_file) |
| book export command. | |
| DLL_API void | edax_book_merge (const char *book_file) |
| book merge command. | |
| DLL_API void | edax_book_fix () |
| book fix command. | |
| DLL_API void | edax_book_negamax () |
| book negamax command. | |
| DLL_API void | edax_book_correct () |
| book correct command. | |
| DLL_API void | edax_book_prune () |
| book prune command. | |
| DLL_API void | edax_book_subtree () |
| book subtree command. | |
| DLL_API void | edax_book_stats_clean () |
| book stats clean command. | |
| DLL_API void | edax_book_show (Position *position) |
| book show command. | |
| DLL_API void | edax_book_info (Book *book) |
| book info command. | |
| DLL_API void | edax_book_count_bestpath (Board *board, Position *position) |
| count the number of best paths in book. | |
| DLL_API void | edax_book_count_board_bestpath (Board *board, Position *position, const int p_lower, const int o_lower, const int turn) |
| count the number of best paths in book. | |
| DLL_API void | edax_book_stop_count_bestpath () |
| stop counting the number of best paths in book. | |
| DLL_API void | edax_book_verbose (const int book_verbosity) |
| book verbose command. | |
| DLL_API void | edax_book_add (const char *base_file) |
| book add command. | |
| DLL_API void | edax_book_check (const char *base_file) |
| book check command. | |
| DLL_API void | edax_book_extract (const char *base_file) |
| book extract command. | |
| DLL_API void | edax_book_deviate (int relative_error, int absolute_error) |
| book deviate command. | |
| DLL_API void | edax_book_enhance (int midgame_error, int endcut_error) |
| book enhance command. | |
| DLL_API void | edax_book_fill (int fill_depth) |
| book fill command. | |
| DLL_API void | edax_book_play () |
| book play command. | |
| DLL_API void | edax_book_deepen () |
| book deepen command. caution: Currently, this function does not work correctly. | |
| DLL_API void | edax_book_feed_hash () |
| book feed-hash command. | |
| DLL_API void | edax_book_add_board_pre_process () |
| book add board preprocess. | |
| DLL_API void | edax_book_add_board_post_process () |
| book add board postprocess. | |
| DLL_API void | edax_book_add_board (const Board *board) |
| book add board. | |
| DLL_API void | edax_base_problem (const char *base_file, const int n_empties, const char *problem_file) |
| base problem command. | |
| DLL_API void | edax_base_tofen (const char *base_file, const int n_empties, const char *problem_file) |
| base tofen command. | |
| DLL_API void | edax_base_correct (const char *base_file, const int n_empties) |
| base correct command. | |
| DLL_API void | edax_base_complete (const char *base_file) |
| base complete command. | |
| DLL_API void | edax_base_convert (const char *base_file_from, const char *base_file_to) |
| base convert command. | |
| DLL_API void | edax_base_unique (const char *base_file_from, const char *base_file_to) |
| base unique command. | |
| DLL_API void | edax_set_option (const char *option_name, const char *val) |
| set (option) command. | |
| DLL_API char * | edax_get_moves (char *str) |
| get moves of the current game. | |
| DLL_API int | edax_is_game_over () |
| check if the current game is over. | |
| DLL_API int | edax_can_move () |
| check if the current player can move. | |
| DLL_API void | edax_get_last_move (Move *move) |
| get last move. | |
| DLL_API void | edax_get_board (Board *board) |
| get current board. | |
| DLL_API int | edax_get_current_player () |
| get current player. | |
| DLL_API int | edax_get_disc (const int color) |
| get current number of discs. | |
| DLL_API int | edax_get_mobility_count (const int color) |
| get current number of legal moves. | |
| DLL_API void | edax_play_print () |
| print play. | |
| DLL_API void | edax_enable_book_verbose () |
| enable book_verbose to get stdout by bprint. | |
| DLL_API void | edax_disable_book_verbose () |
| disable book_verbose not to get stdout by bprint. | |
| DLL_API int | edax_board_is_pass (const Board *board) |
| Check if current player should pass. | |
| DLL_API int | edax_board_get_square_color (const Board *board, const int x) |
| Get square color. | |
Variables | |
| bool | book_verbose |
| UI * | g_ui |
| BenchResult * | g_bench_result |
Edax api.
| void auto_go | ( | void | ) |
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_bench | ( | BenchResult * | result, |
| int | n ) |
bench (a serie of low level tests). command.
| DLL_API void edax_bench_get_result | ( | BenchResult * | result | ) |
Get square color.
| DLL_API void edax_book_add | ( | const char * | base_file | ) |
book add command.
| base_file | base file to add. |
book add board.
| board | board to add. |
| DLL_API void edax_book_add_board_post_process | ( | void | ) |
book add board postprocess.
| DLL_API void edax_book_add_board_pre_process | ( | void | ) |
book add board preprocess.
| 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 | ( | void | ) |
book correct command.
count the number of best paths in book.
| board | board to count the number of best paths. |
| position | the number of best paths(out parameter) |
| DLL_API void edax_book_count_board_bestpath | ( | Board * | board, |
| Position * | position, | ||
| const int | p_lower, | ||
| const int | o_lower, | ||
| const int | turn ) |
count the number of best paths in book.
| board | board to count the number of best paths. |
| position | the number of best paths(out parameter) |
| p_lower | lower limit for player (BESTPATH_BEST:best moves only) |
| o_lower | lower limit for opponent (BESTPATH_BEST:best moves only) |
| turn | turn |
| DLL_API void edax_book_deepen | ( | void | ) |
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 | ( | void | ) |
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 | ( | void | ) |
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 | ( | void | ) |
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 | ( | void | ) |
book off command.
| DLL_API void edax_book_on | ( | void | ) |
book on command.
| DLL_API void edax_book_play | ( | void | ) |
book play command.
| DLL_API void edax_book_prune | ( | void | ) |
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_stats_clean | ( | void | ) |
book stats clean command.
| DLL_API void edax_book_stop_count_bestpath | ( | void | ) |
stop counting the number of best paths in book.
| DLL_API void edax_book_store | ( | void | ) |
book store command.
| DLL_API void edax_book_subtree | ( | void | ) |
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 | ( | void | ) |
check if the current player can move.
| DLL_API void edax_disable_book_verbose | ( | void | ) |
disable book_verbose not to get stdout by bprint.
| DLL_API void edax_enable_book_verbose | ( | void | ) |
enable book_verbose to get stdout by bprint.
| DLL_API void edax_force | ( | char * | moves | ) |
force command.
| moves | moves. |
get current board.
| board | current board(out parameter). |
get book moves.
| move_list | result (out parameter). |
get book moves.
| move_list | result (out parameter). |
| DLL_API int edax_get_bookmove_with_position_by_moves | ( | const char * | moves, |
| MoveList * | move_list, | ||
| Position * | position ) |
get book moves.
| move_list | result (out parameter). |
| position | result (out parameter). |
| DLL_API int edax_get_current_player | ( | void | ) |
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 | ( | void | ) |
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). |
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. This command is for analyze use.
| n | number of hints. |
| hintlist | result (out parameter). |
hint command. Call edax_hint_next after calling this function.
| DLL_API void edax_hmirror | ( | void | ) |
hmirror command.
| DLL_API void edax_init | ( | void | ) |
init command.
| DLL_API int edax_is_game_over | ( | void | ) |
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 | ( | void | ) |
new command.
| DLL_API const char * edax_opening | ( | void | ) |
opening command.
| DLL_API void edax_options_dump | ( | void | ) |
dump options.
| DLL_API const char * edax_ouverture | ( | void | ) |
ouverture command.
| DLL_API void edax_play | ( | char * | moves | ) |
play command.
| moves | moves. |
| DLL_API void edax_play_print | ( | void | ) |
print play.
| DLL_API void edax_redo | ( | void | ) |
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 | ( | void | ) |
stop command.
| DLL_API void edax_symetry | ( | const int | sym | ) |
symetry command.
| sym | symetry. |
| DLL_API void edax_undo | ( | void | ) |
undo command.
| DLL_API void edax_version | ( | void | ) |
version command.
| DLL_API void edax_vmirror | ( | void | ) |
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 | ( | void | ) |
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.
|
extern |
| BenchResult* g_bench_result |
| UI* g_ui |