A small Tetris-implementation to be used directly form the Julia REPL
Author ChristianKurz
7 Stars
Updated Last
4 Years Ago
Started In
May 2018


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:

Julia REPL Screenshot of a lost game of REPLTetris

Installation & Usage

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 Clockwise
  • Left / Right / Down: Move Current Tile
  • Space: Drop Current Tile to Bottom
  • X: Rotate Clockwise
  • Z: Rotate Counter Clockwise
  • C: Swap current tile with tile on hold
  • CTRL-C: Abort Game

Required Packages

Used By Packages

No packages found.