Liking cljdoc? Tell your friends :D

tetris.logic


burn-in-current-tetriminoclj/s

(burn-in-current-tetrimino game-state)

clear-complete-rowsclj/s

(clear-complete-rows {:keys [game-grid game-score] :as game-state-before})

complete-rowsclj/s

(complete-rows {:keys [game-grid]})

compose-current-tetrimino-into-game-gridclj/s

(compose-current-tetrimino-into-game-grid {:keys [game-grid current-tetrimino
                                                  player-row-col]})

difficulty-increment-in-ptsclj/s


drop-currentclj/s

(drop-current {:keys [game-grid current-tetrimino player-row-col]
               :as game-state-before}
              play-next-tetrimino-fn)

empty-game-gridclj/s


empty-rowclj/s


entry-column-for-tetriminoclj/s

(entry-column-for-tetrimino tetrimino)

entry-row-for-tetriminoclj/s

(entry-row-for-tetrimino tetrimino)

extents-of-current-tetriminoclj/s

(extents-of-current-tetrimino current-tetrimino player-row-col)

game-over?clj/s

(game-over? {:keys [player-row-col] :as game-state})

get-cellsclj/s

(get-cells game-grid row col-start num-cells)

handle-eventsclj/s

(handle-events game-state-before events)
(handle-events game-state-before events play-next-tetrimino-fn)

height-of-tetriminoclj/s

(height-of-tetrimino tetrimino)

initial-game-stateclj/s

(initial-game-state)

introduce-next-tetriminoclj/s

(introduce-next-tetrimino {:keys [next-tetrimino] :as game-state-before})

lead-in-grid-heightclj/s


level-from-scoreclj/s

(level-from-score score)

move-downclj/s

(move-down {:keys [player-row-col] :as game-state-before}
           play-next-tetrimino-fn)

move-leftclj/s

(move-left {:keys [game-grid current-tetrimino player-row-col]
            :as game-state-before})

move-rightclj/s

(move-right {:keys [game-grid current-tetrimino player-row-col]
             :as game-state-before})

peaksclj/s

(peaks game-grid player-row)

play-next-tetriminoclj/s


random-tetriminoclj/s

(random-tetrimino)

rotateclj/s

(rotate tetrimino)

rotate-currentclj/s

(rotate-current {:keys [current-tetrimino player-row-col]
                 :as game-state-before})

start-playingclj/s

(start-playing game-state)

tetrimino-adjacent-to-peaks?clj/s

(tetrimino-adjacent-to-peaks? {:keys [game-grid current-tetrimino
                                      player-row-col]})

tetrimino-collides-with-peaks-below-it?clj/s

(tetrimino-collides-with-peaks-below-it? {:keys [game-grid current-tetrimino
                                                 player-row-col]})

tetrimino-crosses-baseline?clj/s

(tetrimino-crosses-baseline? {:keys [current-tetrimino player-row-col]})

tetrimino-shapesclj/s


tetrimino-typesclj/s


tetrinimo-can-move-down?clj/s

(tetrinimo-can-move-down? {:keys [game-grid current-tetrimino player-row-col]})

tetrinimo-cannot-shift-upwards?clj/s

(tetrinimo-cannot-shift-upwards? {:keys [game-grid current-tetrimino
                                         player-row-col]})

transposeclj/s

(transpose matrix)

visible-grid-heightclj/s


visible-grid-widthclj/s


width-of-tetriminoclj/s

(width-of-tetrimino tetrimino)

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

× close