From 72c5056c5aa614d9a86f8b760955cfcf96c44be4 Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Sat, 21 Jan 2023 19:30:45 +0100 Subject: might as well enable size 6 Same network architecture, same training principle. Predictably this is too slow. Also statically allocate state in driver programmes. --- src/geminict.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/geminict.c') 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); -- cgit v1.3.1