Skip to content

Commit 8b00537

Browse files
committed
Pylon: Fix moves() to not return anything when game over
1 parent 113aec9 commit 8b00537

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/games/pylon.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ export class PylonGame extends GameBase {
177177
}
178178

179179
public moves(player?: playerid): string[] {
180+
if (this.gameover) {
181+
return [];
182+
}
183+
180184
if (player === undefined) {
181185
player = this.currplayer;
182186
}

0 commit comments

Comments
 (0)