Skip to content

Exceptions

tilttek/mini-games

Every exception of the library implements Tilttek\MiniGames\Exception\MiniGameException. The exceptions of tilttek/game-engine — IllegalMove, ConcurrentMove, InvalidGame, UnknownTable, GameInProgress — pass through unchanged.

ExceptionRaised whenMessage, for instance
InvalidMiniGameA value is refused: a day, a secret too short, a control, a grid or its symbols, a code of Bulls and Cows, an unknown game, two games of one name, a history of several playersNo mini-game is named "chess".
SeedNotRevealableThe log of a daily game, seed included, is asked for while its day is not overThe seed of the daily game "bulls-and-cows" of 2026-11-24 is shown once the day is over.

A guess an example game refuses — {guess: "0447"} — is an IllegalMove of the engine, with the message of the refusal: A guess is 4 different digits.