diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-28 12:01:42 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2021-01-28 12:01:42 -0500 |
| commit | 10d668dd1861460d5a2c6fa15c703243ef48941d (patch) | |
| tree | 44c23ad0509357ae5525aa51db37bdc2709ea645 /include/negamax.c | |
| parent | 82e47a77fcdc9f902042ac62e48dea6471351ee2 (diff) | |
It would appear that any function call whatsoever is slower :/
For now we'll stay with directly recomputing it at each non-terminal
node
Diffstat (limited to 'include/negamax.c')
| -rw-r--r-- | include/negamax.c | 6 |
1 files changed, 0 insertions, 6 deletions
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) { |
