Skip to content

Commit

Permalink
[fix] remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
whyNot077 committed Dec 15, 2023
1 parent 93fa241 commit 11cc208
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions project/backend/src/pong/pong.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,10 @@ export class Pong {
}

setGameOver(isPlayer1win: boolean, byPlayerOut = false) {
// if (byPlayerOut) {
// // -1로 변하는 로직은 삭제
// if (isPlayer1win) {
// this.gameState.score2 = -1;
// } else {
// this.gameState.score1 = -1;
// }
// }
if (isPlayer1win) {
this.gameState.score1 = GAME_OVER;
// this.gameState.score2 = -1;
} else {
this.gameState.score2 = GAME_OVER;
// this.gameState.score1 = -1;
}
this.gameState.gameOver = true;
}
Expand Down

0 comments on commit 11cc208

Please sign in to comment.