Skip to content

Commit

Permalink
fix: 피노코가 정답 맞췄을시 제페토 승리로 나오던 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
mssak committed Nov 28, 2024
1 parent 62858c9 commit 3bf5469
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/backend/gameserver/src/game/game.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ export class GameService {
if (!game) throw new Error('게임을 찾을 수 없습니다.');

game.guessingWord = word;
game.isGuessed = game.word === word;
game.phase = 'ENDING';
const isCorrect = game.word === word;

return game.isGuessed;
return isCorrect;
}

endGame(gsid: string) {
Expand Down
1 change: 0 additions & 1 deletion packages/backend/gameserver/src/game/types/game.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export interface IGameState {
speakerQueue: string[];
votes: Record<string, string>;
guessingWord?: string;
isGuessed?: boolean;
}

export interface IGameInfo extends IGameState {
Expand Down

0 comments on commit 3bf5469

Please sign in to comment.