aboutsummaryrefslogtreecommitdiff
path: root/src/geminict.c
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2023-01-21 19:30:45 +0100
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commit0e81096d5ecb6027814e7aae10b461e774f96407 (patch)
tree6cedfe4b3fad3770a5210f5e5d5ad205c17f4b0f /src/geminict.c
parentcb2b78ced27fc7996ed11c3450f69138d7d1b61f (diff)
might as well enable size 6
Same network architecture, same training principle. Predictably this is too slow. Also statically allocate state in driver programmes.
Diffstat (limited to 'src/geminict.c')
-rw-r--r--src/geminict.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/geminict.c b/src/geminict.c
index 6f2d04b..2e94e7d 100644
--- a/src/geminict.c
+++ b/src/geminict.c
@@ -39,7 +39,8 @@
#define STR_CHF_BLK "b"
#define STR_CHF_WHT "w"
-static tak_state_p state;
+struct tak_state_s state_s;
+static tak_state_p state = &state_s;
static void put_stone(const enum STONE_VARIANT stone, const enum COLOUR colour,
const uint8_t top, const uint8_t beyond_carry_limit) {
@@ -306,7 +307,6 @@ int main(int argc, char **argv) {
return EXIT_FAILURE;
};
- state = new_tak_state(5);
negamax_search_depth = 5;
new_game(5);
negamax_init(5);