Add check array in position structure

This commit is contained in:
2023-07-25 06:54:33 +02:00
parent f27b649503
commit 48b5420830
4 changed files with 10 additions and 2 deletions

View File

@@ -271,6 +271,7 @@ pos_t *pos_get()
* - nodecount is set to zero
* - eval is set to EVAL_INVALID
* - moves_generated ans moves_counted are unset
* - check is set to zero
*
* @return: The new position.
*
@@ -303,6 +304,7 @@ pos_t *pos_dup(pos_t *pos)
new->eval = EVAL_INVALID;
new->moves_generated = false;
new->moves_counted = false;
new->check[WHITE] = new->check[BLACK] = 0;
}
return new;
}