Gives info about the gamestate
Gives info about the gamestate
(blitzing-players gamestate)
Returns players who have 31 points in hand
Returns players who have 31 points in hand
(hand->str gamestate player-index)
Returns a space-seperated string of each card in the hand of the player at player-index
Returns a space-seperated string of each card in the hand of the player at `player-index`
(losing-indexes gamestate)
Indexes of any player who should lose a life during scoring
Indexes of any player who should lose a life during scoring
(losing-names gamestate)
Names of any player who should lose a life during scoring
Names of any player who should lose a life during scoring
(player-loses-life? gamestate player-index)
Returns true
the player at player-index should lose a life
Returns `true` the player at player-index should lose a life
(time-to-score? {active-player :active-player
knocking-player :knocking-player
deck :deck
:as gamestate})
Returns true
if the game should move to the scoring phase
Returns `true` if the game should move to the scoring phase
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close