khetai 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.clang-format +5 -1
- data/.gitignore +8 -4
- data/Gemfile.lock +1 -1
- data/README.md +48 -28
- data/ext/khetai/khetai.c +1 -1
- data/ext/khetai/khetai_lib.c +32 -29
- data/ext/khetai/khetai_lib.h +0 -4
- data/khetai.gemspec +1 -1
- data/lib/khetai/version.rb +1 -1
- metadata +2 -54
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/ext/khetai/dev/CMakeLists.txt +0 -5
- data/ext/khetai/dev/README.md +0 -15
- data/ext/khetai/dev/fltk-ui/Makefile +0 -65
- data/ext/khetai/dev/fltk-ui/Makefile.khetai +0 -46
- data/ext/khetai/dev/fltk-ui/README.md +0 -34
- data/ext/khetai/dev/fltk-ui/ai_loader.cpp +0 -78
- data/ext/khetai/dev/fltk-ui/ai_loader.h +0 -33
- data/ext/khetai/dev/fltk-ui/assets/anubis_red_e.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/anubis_red_n.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/anubis_red_s.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/anubis_red_w.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/anubis_silver_e.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/anubis_silver_n.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/anubis_silver_s.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/anubis_silver_w.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/example_board.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/laser_red_e.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/laser_red_n.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/laser_red_s.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/laser_red_w.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/laser_silver_e.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/laser_silver_n.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/laser_silver_s.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/laser_silver_w.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pharaoh_red.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pharaoh_silver.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pyramid_red_e.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pyramid_red_n.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pyramid_red_s.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pyramid_red_w.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pyramid_silver_e.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pyramid_silver_n.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pyramid_silver_s.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pyramid_silver_w.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/scarab_red_e.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/scarab_red_n.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/scarab_red_s.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/scarab_red_w.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/scarab_silver_e.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/scarab_silver_n.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/scarab_silver_s.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/scarab_silver_w.png +0 -0
- data/ext/khetai/dev/fltk-ui/build_khetai.sh +0 -9
- data/ext/khetai/dev/fltk-ui/game_board.cpp +0 -794
- data/ext/khetai/dev/fltk-ui/game_board.h +0 -98
- data/ext/khetai/dev/fltk-ui/game_board_util.cpp +0 -101
- data/ext/khetai/dev/fltk-ui/game_board_util.h +0 -15
- data/ext/khetai/dev/fltk-ui/khet.cpp +0 -54
- data/ext/khetai/dev/main.c +0 -49
- data/ext/khetai/dev/main.rb +0 -14
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
#ifndef AI_LOADER_H
|
|
2
|
-
#define AI_LOADER_H
|
|
3
|
-
|
|
4
|
-
#include "../../khetai_lib.h"
|
|
5
|
-
#include <dlfcn.h>
|
|
6
|
-
#include <stdexcept>
|
|
7
|
-
#include <string>
|
|
8
|
-
|
|
9
|
-
class AILoader {
|
|
10
|
-
public:
|
|
11
|
-
AILoader(const std::string &lib_path);
|
|
12
|
-
~AILoader();
|
|
13
|
-
|
|
14
|
-
void (*get_init_zobrist())();
|
|
15
|
-
void (*get_reset_undo())();
|
|
16
|
-
void (*get_setup_board())(char **);
|
|
17
|
-
void (*get_print_board())();
|
|
18
|
-
void (*get_set_time_parameters())(int, time_t);
|
|
19
|
-
Move (*get_alphabeta_root())(int, enum Player);
|
|
20
|
-
void (*get_make_move())(Move);
|
|
21
|
-
int (*get_get_start())(Move);
|
|
22
|
-
int (*get_get_end())(Move);
|
|
23
|
-
int (*get_get_rotation())(Move);
|
|
24
|
-
void reload_library(const std::string &lib_path);
|
|
25
|
-
|
|
26
|
-
private:
|
|
27
|
-
void *handle;
|
|
28
|
-
void load_library(const std::string &lib_path);
|
|
29
|
-
void *get_symbol(const std::string &symbol_name);
|
|
30
|
-
void check_error();
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
#endif // AI_LOADER_H
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|