Skip to content

Reference

tilttek/mini-games

Every public type of the package, with its role.

TypeRole
Contract\MiniGameA game of the engine played alone, with its scoring, its controls and its share
ScoringWhich way a game's scores go, and the seat statistic that holds the score
ScoreOrderHigher or lower is better: strict comparison, records, the best of some scores
ControlAn action of a game and the keys that perform it
DayA calendar day of the site, read, compared and numbered
DailySeedThe seed of a game on a day, from the site's secret
DailyGamesThe players' tables of the daily games: start, play, view, share, ending, and the log once the day is over
DailyScoreThe result of a player's daily game, sent to the score sink
DailyHistoryA player's daily scores of one game added up, without streaks
Contract\ScoreSinkThe port the scores go to
Store\NullScoreSink, Store\InMemoryScoreSinkA sink that keeps nothing, and one in memory for tests
Ending, ToneHow a game ended for its player: a victory celebrated, or a game completed told kindly; a record or not
ShareGrid, Cell, CellSymbolsA result shared as text, its cells and the symbols they are written with
MiniGamesThe mini-games of an application, by name, and the same games for the engine
Game\BullsAndCows, Game\CodeThe guessing game of a code of different digits, and its codes
Game\HigherOrLowerThe game of ten calls, higher or lower
Exception\MiniGameException, InvalidMiniGame, SeedNotRevealableExceptions