Skip to content

Commit a400a71

Browse files
authored
Merge pull request #274 from mcdemarco/develop
Check for Deckfish EOG another way re overpass bug
2 parents ceec1ea + ea3df94 commit a400a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/games/deckfish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ export class DeckfishGame extends GameBase {
10571057
}
10581058

10591059
protected checkEOG(): DeckfishGame {
1060-
if (this.lastmove === "pass" && this.eliminated === this.currplayer) {
1060+
if (this.lastmove === "pass" && this.stack[this.stack.length - 1].lastmove === "pass") {
10611061
this.gameover = true;
10621062
const scores: number[] = [];
10631063
for (let p = 1; p <= this.numplayers; p++) {

0 commit comments

Comments
 (0)