This started as an exercise to learn terminal rendering and key-input. Tile-colors, scoring, button-mapping, speed and levels are in accordance to the Tetris Guideline. T-spins and wall kicks are not yet available, but will be added soon.
This is a screenshot playing in the VSCode REPL:
The package is registered in Meta-Data. Simply install it using Pkg.add
:
julia> Pkg.add("REPLTetris")
After using the Package, you can start a game with tetris()
:
julia> using REPLTetris
julia> tetris()
The game is controlled via arrow-keys, X, Z and space:
Up
: Rotate ClockwiseLeft
/Right
/Down
: Move Current TileSpace
: Drop Current Tile to BottomX
: Rotate ClockwiseZ
: Rotate Counter ClockwiseC
: Swap current tile with tile on holdCTRL-C
: Abort Game