GameResolver

model.entities.games.GameResolver
object GameResolver

Resolves game interactions between customers and games in the simulation.

The GameResolver is responsible for processing all active games by identifying playing customers, executing their bets, and updating game histories with the results. It handles the coordination between customer actions and game state updates in each simulation tick.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def update(customers: List[Customer], games: List[Game], ticker: Ticker): List[Game]

Updates all games by processing customer interactions for each game.

Updates all games by processing customer interactions for each game.

Applies the playGame logic to every game in the simulation, ensuring that all customer bets are processed and game histories are updated accordingly

Value parameters

customers

the complete list of customers in the simulation

games

the complete list of games in the simulation

Attributes

Returns

updated list of games with new history entries from customer interactions