stupid
This commit is contained in:
parent
0500215eda
commit
d6d2c5def5
1 changed files with 3 additions and 0 deletions
|
@ -303,6 +303,9 @@ int dfs(Node &result, int depth) {
|
||||||
next.board[new_cx][new_cy] = next.board[new_cx][new_cy] == TARGET
|
next.board[new_cx][new_cy] = next.board[new_cx][new_cy] == TARGET
|
||||||
? CRATE_ON_TARGET
|
? CRATE_ON_TARGET
|
||||||
: CRATE_ON_FREE;
|
: CRATE_ON_FREE;
|
||||||
|
if (next.board[new_cx][new_cy] == CRATE_ON_TARGET) {
|
||||||
|
--next.num_crates_free;
|
||||||
|
}
|
||||||
// Déplacement joueur, ancienne position
|
// Déplacement joueur, ancienne position
|
||||||
next.board[man1_x][man1_y] =
|
next.board[man1_x][man1_y] =
|
||||||
next.board[man1_x][man1_y] == MAN1_ON_TARGET ? TARGET : FREE;
|
next.board[man1_x][man1_y] == MAN1_ON_TARGET ? TARGET : FREE;
|
||||||
|
|
Reference in a new issue