From b5b337d4044a8e64956b8a2309739353f9ce339e Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Thu, 28 Jan 2021 12:01:42 -0500 Subject: It would appear that any function call whatsoever is slower :/ For now we'll stay with directly recomputing it at each non-terminal node --- include/negamax.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'include/negamax.c') diff --git a/include/negamax.c b/include/negamax.c index b51961d..cfe2643 100644 --- a/include/negamax.c +++ b/include/negamax.c @@ -87,12 +87,6 @@ negamax(const uint8_t cur_depth, float alpha, float beta, action_take(node->action); - { - if (zobrist_apply(node->action, hash) != zobrist_compute()) { - printf("! %s\n", (GET_TYPE(node->action)==A_PLACE)?"A_PLACE":"A_MOVE"); - } - } - // Compute the value of the node float node_value; if (ply >= 2*board_size - 2 && (w = check_win()) < 0xFF) { -- cgit v1.3.1