Skip to content

Reference

tilttek/tavern-games

Every public type of the package, with its role.

TypeRole
Contract\TavernGameA turn-based game of the engine that keeps its own turns and accepts the timeout of a turn
TurnsWhose turn it is, kept in the game's data
TavernTablesOpens and plays the tables, tells the turn timer, plays timeouts, shows views and endings
Contract\TurnTimerThe optional clock of the turns
Store\NullTurnTimer, Store\InMemoryTurnTimerNo clock, and the running turns in memory for tests
Ending, ToneHow a game ended for a seat: a victory, a shared victory or a good game
TavernGamesThe tavern games of an application, by name, and the same games for the engine
DiceCupSix-sided dice rolled by tilttek/dice with the chance of a move
Contract\SimulationA position played to its end at random
Odds\Estimator, Odds\Estimate, Odds\TrialOdds over simulated endings, wins, ties and losses apart
Odds\CargoChaseThe turn of a seat at Ship, Captain and Crew, chased to its end
Game\PigThe dice game of push-your-luck
Game\ShipCaptainCrewThe dice game of the ship, the captain, the crew and the cargo
Game\CrazyEightsThe card game of shedding, eights wild
Exception\TavernGamesException, InvalidTavernGameExceptions