We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67d6c46 commit 5894a1dCopy full SHA for 5894a1d
src/games/acity.ts
@@ -225,7 +225,7 @@ export class ACityGame extends GameBase {
225
// never makes a claim
226
public randomMove(): string {
227
const stash = shuffle([...new Set<string>(this.stashes[this.currplayer - 1])]) as string[];
228
- const empties = shuffle(this.graph.graph.nodes().filter(c => ! this.board.has(c))) as string[];
+ const empties = shuffle((new SquareOrthGraph(8, 10)).graph.nodes().filter(c => ! this.board.has(c))) as string[];
229
for (const piece of stash) {
230
for (const cell of empties) {
231
const move = `${piece}-${cell}`
0 commit comments