Skip to content

Commit 5894a1d

Browse files
committed
ACity: Try different approach
1 parent 67d6c46 commit 5894a1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/games/acity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export class ACityGame extends GameBase {
225225
// never makes a claim
226226
public randomMove(): string {
227227
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[];
228+
const empties = shuffle((new SquareOrthGraph(8, 10)).graph.nodes().filter(c => ! this.board.has(c))) as string[];
229229
for (const piece of stash) {
230230
for (const cell of empties) {
231231
const move = `${piece}-${cell}`

0 commit comments

Comments
 (0)