Skip to content

Commit

Permalink
Kill the game when the players disagree
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantumplation committed Dec 10, 2024
1 parent 9f2d9b0 commit 070119f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions referee/referee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ hydra.onPlayerJoin = async (gameId, ephemeralKeys) => {
};
hydra.onDisagreement = async () => {
// TODO: cleanup game state
done = true;
await reportResults(gameId, {
gameId: gameId,
result: "disagreement",
Expand Down

0 comments on commit 070119f

Please sign in to comment.