diff options
| author | tslil <tslil@posteo.de> | 2021-05-07 22:19:31 -0400 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | 1d1b28c294143f7a918db7a646b5564674616e44 (patch) | |
| tree | c9a4fa49fd0b39bc6752f455d785363f6aadf345 /include | |
| parent | 29536c86457d83967c23a900574182b3898f04dd (diff) | |
quick hachstats
Diffstat (limited to 'include')
| -rw-r--r-- | include/actions.c | 6 | ||||
| -rw-r--r-- | include/actions.h | 2 | ||||
| -rw-r--r-- | include/negamax.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/include/actions.c b/include/actions.c index 374f4f9..6c2eb8c 100644 --- a/include/actions.c +++ b/include/actions.c @@ -80,9 +80,9 @@ void action_list_free(action_list_t *list) { // Keep track of move offsets int8_t move_deltas[4]; -void action_list_init(void) { - move_deltas[0] = +board_size; - move_deltas[1] = -board_size; +void action_list_init(const uint8_t size) { + move_deltas[0] = +size; + move_deltas[1] = -size; move_deltas[2] = -1; move_deltas[3] = +1; } diff --git a/include/actions.h b/include/actions.h index 75c881e..de64b71 100644 --- a/include/actions.h +++ b/include/actions.h @@ -64,7 +64,7 @@ extern int8_t move_deltas[4]; // Methods // =================================================================== -void action_list_init(void); +void action_list_init(const uint8_t size); void action_list_free(action_list_t *list); action_list_t *action_list_generate(void); diff --git a/include/negamax.c b/include/negamax.c index a970b83..e83d43b 100644 --- a/include/negamax.c +++ b/include/negamax.c @@ -40,7 +40,7 @@ static float negamax(const uint8_t cur_depth, const uint8_t init_depth, void negamax_init(const uint8_t new_board_size) { board_size = new_board_size; - action_list_init(); + action_list_init(new_board_size); zobrist_init(); tt_init(); } |
