From 585d675a8ff024f39b2cb85c727b8c8b7f3e358e Mon Sep 17 00:00:00 2001 From: Jona Walpert Date: Mon, 13 Apr 2026 03:04:54 +0200 Subject: [PATCH] fix: javadoc for MR --- .../server/domain/game/state/GameState.java | 33 +++++++++++-------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/src/main/java/ch/unibas/dmi/dbis/cs108/casono/server/domain/game/state/GameState.java b/src/main/java/ch/unibas/dmi/dbis/cs108/casono/server/domain/game/state/GameState.java index 2e2d054..81fbdfb 100644 --- a/src/main/java/ch/unibas/dmi/dbis/cs108/casono/server/domain/game/state/GameState.java +++ b/src/main/java/ch/unibas/dmi/dbis/cs108/casono/server/domain/game/state/GameState.java @@ -11,15 +11,19 @@ import java.util.List; import java.util.Map; /** - * The GameState class encapsulates the entire state of a poker game at any given moment. + * The GameState class encapsulates the entire state of a poker game at any + * given moment. * - *

Important invariants this implementation maintains: + *

+ * Important invariants this implementation maintains: * *

*/ public class GameState { @@ -184,7 +188,8 @@ public class GameState { } /** - * Reset bets to 0 for ALL players (do not clear the map). Also resets table current bet to 0. + * Reset bets to 0 for ALL players (do not clear the map). Also resets table + * current bet to 0. */ public void resetBets() { for (PlayerId id : playerOrder) { @@ -227,7 +232,8 @@ public class GameState { // Cards /** - * Gives (overwrites) the two hole cards for the given player. Ensures stable list identity + * Gives (overwrites) the two hole cards for the given player. Ensures stable + * list identity * (important if other code holds references). */ public void giveHoleCards(PlayerId playerId, Card c1, Card c2) { @@ -287,13 +293,14 @@ public class GameState { /** * Starts a new hand by resetting the game state for the next round of poker. * - *

This: + *

+ * This: * *

*/ public void startNewHand() {