This commit is contained in:
Mylloon 2023-02-21 14:22:16 +01:00
parent 94d9102b64
commit 243b3ed641
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -100,13 +100,13 @@ void sok_board_t::load(char *_file) {
}
bool is_in_history(Node current, std::vector<Node> history) {
for (int i = 0; i < history.size(); ++i) {
for (ulong i = 0; i < history.size(); ++i) {
Node noeud = history[i];
int c = 0;
for (int l = 0; l < NBL; ++l) {
for (int m = 0; m < NBC; ++m) {
if (current.state.board[l][m] != current.state.board[l][m])
if (current.state.board[l][m] != noeud.state.board[l][m])
c++;
}
}