Skip to content

Commit c62bea3

Browse files
committed
Arimaa: Fix free placement setup on ply 3
1 parent 61f19f0 commit c62bea3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/games/arimaa.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,10 @@ export class ArimaaGame extends GameBase {
894894
}
895895

896896
// clear hands when both are empty
897-
if (this.hands !== undefined && this.hands[0].length === 0 && this.hands[1].length === 0) {
897+
if (
898+
(this.hands !== undefined && this.hands[0].length === 0 && this.hands[1].length === 0) ||
899+
(this.variants.includes("free") && this.stack.length ===2)
900+
) {
898901
this.hands = undefined;
899902
}
900903

0 commit comments

Comments
 (0)