Skip to content

Commit

Permalink
fix endgame condition
Browse files Browse the repository at this point in the history
  • Loading branch information
oshibka404 committed Aug 28, 2024
1 parent 7b11d5f commit 9a5871f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screens/match/scoreboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class ScoreBoard {

increment(player: 'p1' | 'p2') {
this[player]++
if (this[player] > this.pointsToWin) {
if (this[player] >= this.pointsToWin) {
this.endGame()
}
}
Expand Down

0 comments on commit 9a5871f

Please sign in to comment.