From 59c47267ad02db025ae05126cbd5719ec0984e81 Mon Sep 17 00:00:00 2001 From: Julian Kropff Date: Sat, 4 Apr 2026 16:13:23 +0200 Subject: [PATCH] Docs: fix Game Engine implementation Documentation --- .../docs/game-engine/game-engine-control.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/documents/docs/game-engine/game-engine-control.md b/documents/docs/game-engine/game-engine-control.md index c91c862..f45f10d 100644 --- a/documents/docs/game-engine/game-engine-control.md +++ b/documents/docs/game-engine/game-engine-control.md @@ -38,10 +38,10 @@ The server calls methods on the GameController to control the game. ```java GameController game = new GameController(engine); -game.addPlayer("Julian", 20000); -game.addPlayer("Mathis", 20000); -game.addPlayer("Jona", 20000); -game.addPlayer("Lars", 20000); +game.addPlayer(PlayerId.of("Julian"), 20000); +game.addPlayer(PlayerId.of("Mathis"), 20000); +game.addPlayer(PlayerId.of("Jona"), 20000); +game.addPlayer(PlayerId.of("Lars"), 20000); game.startGame(); ``` @@ -63,10 +63,10 @@ When `startGame()` is called: During the preflop phase, players perform actions. ```java -game.playerCall("Julian"); -game.playerFold("Mathis"); -game.playerCall("Jona"); -game.playerRaise("Lars", 1200); +game.playerCall(PlayerId.of("Julian")); +game.playerFold(PlayerId.of("Mathis")); +game.playerCall(PlayerId.of("Jona")); +game.playerRaise(PlayerId.of("Lars"), 1200); ``` Supported actions include: @@ -179,7 +179,7 @@ Example: ## Get player hole cards ```java -Map> cards = game.getPlayerCards(); +Map> cards = game.getPlayerCards(); ``` Returns a mapping of player IDs to their hole cards.