Docs: fix Game Engine implementation Documentation

This commit is contained in:
Julian Kropff
2026-04-04 16:13:23 +02:00
parent 413999a226
commit 59c47267ad
@@ -38,10 +38,10 @@ The server calls methods on the GameController to control the game.
```java ```java
GameController game = new GameController(engine); GameController game = new GameController(engine);
game.addPlayer("Julian", 20000); game.addPlayer(PlayerId.of("Julian"), 20000);
game.addPlayer("Mathis", 20000); game.addPlayer(PlayerId.of("Mathis"), 20000);
game.addPlayer("Jona", 20000); game.addPlayer(PlayerId.of("Jona"), 20000);
game.addPlayer("Lars", 20000); game.addPlayer(PlayerId.of("Lars"), 20000);
game.startGame(); game.startGame();
``` ```
@@ -63,10 +63,10 @@ When `startGame()` is called:
During the preflop phase, players perform actions. During the preflop phase, players perform actions.
```java ```java
game.playerCall("Julian"); game.playerCall(PlayerId.of("Julian"));
game.playerFold("Mathis"); game.playerFold(PlayerId.of("Mathis"));
game.playerCall("Jona"); game.playerCall(PlayerId.of("Jona"));
game.playerRaise("Lars", 1200); game.playerRaise(PlayerId.of("Lars"), 1200);
``` ```
Supported actions include: Supported actions include:
@@ -179,7 +179,7 @@ Example:
## Get player hole cards ## Get player hole cards
```java ```java
Map<String, List<Card>> cards = game.getPlayerCards(); Map<PlayerId, List<Card>> cards = game.getPlayerCards();
``` ```
Returns a mapping of player IDs to their hole cards. Returns a mapping of player IDs to their hole cards.