CrossClj

0.1.31 docs

SourceDocs



RECENT
    VARS
    can-be-selected?
    can-move?
    can-stack-in-foundation?
    can-stack-in-tableau?
    can-stack-piles-in-tableau?
    cards-in-desc-order?
    comply-with-policies?
    foundation-piles
    from-has-at-least-i+1-elements?
    tableau-face-up-piles
    valid-single-to-tableau?
    valid-to-foundation?
    valid-to-tableau?
    won?

    « Index of all namespaces of this project

    (can-be-selected? {:keys [m i from]})
    input: {:m game :i index-in-pile :from from-key :to to-key}
    
    (can-stack-in-foundation? {:keys [top-card bottom-card]})
    (can-stack-in-tableau? {:keys [top-card bottom-card]})
    (can-stack-piles-in-tableau? {:keys [top-pile bottom-pile]})
    (cards-in-desc-order? {:keys [cards]})
    (comply-with-policies? {:keys [m i from to], :as all})
    (from-has-at-least-i+1-elements? {:keys [m i from]})
    (valid-single-to-tableau? {:keys [m i from to]})
    (valid-to-foundation? {:keys [m i from to]})
    (valid-to-tableau? {:keys [m i from to]})
    (won? game)