Skip to content

Commit a5897d0

Browse files
committed
games: Fix chess draw players
1 parent 2f7b22d commit a5897d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ps/games/chess/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export class Chess extends BaseGame<State> {
136136
}
137137
if (this.lib.isDraw()) {
138138
this.winCtx = { type: 'draw' };
139-
return this.$T('GAME.DRAW', { players: [this.players.w.name, this.players.b.name].list(this.$T) });
139+
return this.$T('GAME.DRAW', { players: [this.players.W, this.players.B.name].list(this.$T) });
140140
}
141141
if (this.lib.isCheckmate()) {
142142
const winner = this.players[this.turn!];

0 commit comments

Comments
 (0)