ref: 0c733fd285842ea9c15562cbddbcc5fee2f3d273
parent: b2480be72099183e82ca9e25c1faea6e4221d28e
author: zamfofex <zamfofex@twdb.moe>
date: Wed Feb 7 12:38:29 EST 2024
remove unused variable
--- a/search.c
+++ b/search.c
@@ -126,15 +126,13 @@
struct moonfish_move moves[32];
struct moonfish_move *move;
int x, y;
- int done;
if (node->count != 0) return;
- done = 0;
node->children = NULL;
- for (y = 0 ; y < 8 && !done ; y++)
- for (x = 0 ; x < 8 && !done ; x++)
+ for (y = 0 ; y < 8 ; y++)
+ for (x = 0 ; x < 8 ; x++)
{moonfish_moves(chess, moves, (x + 1) + (y + 2) * 10);
--
⑨