Changelog
tilttek/spotlightAll notable changes to tilttek/spotlight will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
0.1.0-alpha - 2026-11-29
Added
Table,PlayerShare,VisibilityandFairnessPolicy: a table of 1 to 20 players in seat order, each with the time they held the scene, their scenes, the end of their last scene and since when they wait, the counts for the game master or the whole table, and a player behind below a part of the fair share after a warm-up, bounded and checked.Spotlight: a table opened with no one holding the scene, read from a PSR-20 clock; it keeps no state between calls.Spotlight::give()andrelease(): the scene given to a player or taken back, the scene in progress counted.Spotlight::giveNext(): the scene to the first raised hand, else to the player who held it the least, who waited the longest since their last scene at equal time, the first in seat order at equal waits.Spotlight::raiseHand()andlowerHand(): the queue of raised hands, first come first, a player given the scene taken out of it.Spotlight::pause()andresume(): the count stopped and run again, a scene given while paused starting paused.Spotlight::join(),leave()andclose(): a player seated last or gone with their count, and the table closed, changing no more.View\SpotlightViewandView\PlayerSpotlight: each player's time, scenes, share in basis points, place in the queue, wait, time since their last scene and whether they are behind, the next player, as plain data for the game master, and without the counts for a table that does not see them.- The events
TableOpened,SceneGiven,SceneEnded,HandRaised,HandLowered,SpotlightPaused,SpotlightResumed,PlayerJoined,PlayerLeftandTableClosed, by identifiers only, told once to aContract\SpotlightObserver. Contract\TableStore, kept at a version, andStore\InMemoryTableStorefor tests.- The exceptions
InvalidSpotlight,SpotlightRefused,SpotlightNotFoundandSpotlightConflict, underSpotlightException. - A benchmark of the view of a full table and of 1 000 scenes passed on.
- The documentation in
doc/, one file per topic, indexed by the README. CONTRIBUTING.md,SECURITY.mdandCODE_OF_CONDUCT.md.