Skip to content

Extension points

tilttek/card-deck

The package is at 0.x: its extension points are stable only from its 1.0 release. Until then, a minor version may change them, and its CHANGELOG says how.

PointWhat an application givesWhere
Contract\GameStoreThe store of its games, on its own databaseGames and stores
DeckThe cards of its games, declared as dataCards and zones
The rules of the gameWhose turn it is and which player may play which gesture, checked before CardTable::play()Gestures
The pushing of viewsEach player's own view, sent after each gesturePlayer views

The cards, zones, gestures and views are values; the gestures are a closed set the codec reads. CardTable keeps no state between two calls.