Liking cljdoc? Tell your friends :D

thirty-one.evaluator

Gives info about the gamestate

Gives info about the gamestate
raw docstring

blitzing-playersclj

(blitzing-players gamestate)

Returns players who have 31 points in hand

Returns players who have 31 points in hand
sourceraw docstring

hand->strclj

(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`
sourceraw docstring

losing-indexesclj

(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
sourceraw docstring

losing-namesclj

(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
sourceraw docstring

player-loses-life?clj

(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
sourceraw docstring

time-to-score?clj

(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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close