Feature/124 cheat detection#184
Merged
Merged
Conversation
|
the-only-queen-anna
approved these changes
Jun 23, 2026
the-only-queen-anna
left a comment
Collaborator
There was a problem hiding this comment.
Ich kann aktuell leider nicht testen, ob das funktioniert, aber so schauts schon mal echt sauber aus. Danke!
| * | ||
| * @param callingTeam the team that correctly exposed the opponent's cheat | ||
| */ | ||
| private void skipOpponentTurn(Team callingTeam) { |
Collaborator
There was a problem hiding this comment.
Cooler workaround :D
XtophB
approved these changes
Jun 24, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Context
Adds backend cheat detection support for operative gameplay and cheat exposure handling.
Description
Implemented cheat usage and expose-cheat backend flow via WebSocket. Operatives can use cheat support during their phase, and teams can expose opponent cheating with turn penalties applied based on the result.
Changes in the codebase
Added expose-cheat WebSocket endpoint
Added cheat exposure result DTO
Added cheat validation through CheatService
Resolved player team and role via player UUID
Added opponent turn skip on correct cheat exposure
Added turn pass penalty on wrong cheat exposure
Added operative chat system messages for expose results
Added/updated tests for GameManager, GameService, CheatService, and GameSocketController
Changes outside the codebase
N/A
Additional information
Cheat actions are limited to operatives. Correct exposure skips the opposing team’s next turn, while wrong exposure ends the accusing team’s turn.