GameRunner
com.phasmidsoftware.gambit.game.GameRunner
class GameRunner[P, S, M, Pl](playerMap: Map[Pl, Player[S, M, Pl]], random: Random = ...)(using state: State[P, S], game: Game[S, M, Pl])
A generic game runner that plays a sequence of games between any number of players, for any game representable as a State[P, S] and Game[S, M, Pl].
Type parameters: P — proto-state type (used by State.construct) S — state type M — move type Pl — player identity type (e.g., Boolean for two-player, Seat for bridge)
Value parameters
- game
-
implicit Game[S, M, Pl] for game mechanics.
- playerMap
-
a map from player identity to Player instance.
- random
-
a Random instance for reproducibility.
- state
-
implicit State[P, S] for goal detection.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article