Conseil du maître : une ligne après chaque coup, l'explication sur demande (1d) #51
@@ -253,9 +253,7 @@ export class Game {
|
||||
positions.push(check.position);
|
||||
}
|
||||
const onRoll = before.turn ?? side;
|
||||
const boards = await Promise.all(
|
||||
positions.map((p) => this.#sideBoards(p, onRoll, before)),
|
||||
);
|
||||
const boards = await Promise.all(positions.map((p) => this.#sideBoards(p, onRoll, before)));
|
||||
const opponent = otherSide(side);
|
||||
const hits = halfMoves.map(
|
||||
(_, i) => (boards[i + 1]?.[opponent].bar ?? 0) > (boards[i]?.[opponent].bar ?? 0),
|
||||
|
||||
Reference in New Issue
Block a user