Skip to content

Commit f197d1d

Browse files
committed
games: Fix Snakes & Ladders winCtx
1 parent 6dedaf3 commit f197d1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ps/games/snakesladders/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class SnakesLadders extends BaseGame<State> {
100100
this.log.push({ turn: player, time: new Date(), action: 'roll', ctx: dice });
101101

102102
if (final === 100) {
103-
this.winCtx = { type: 'win', winner: { ...this.players[current], board: this.state.board } };
103+
this.winCtx = { type: 'win', winner: { ...this.players[player], board: this.state.board } };
104104
this.end();
105105
return;
106106
}

0 commit comments

Comments
 (0)