CuteMachine

Playing Tetris With Zsh

Wow, today I learned that you could play Tetris with Zsh. No plugins are required.

Playing Tetris With Zsh

Here is how you run Tetris in your Zsh.

$ autoload -Uz tetriscurses
$ tetriscurses

You can add the alias tetris and the autoload command to your .zshrc if you play it more often.

$ autoload -Uz tetriscurses
$ alias tetris=tetriscurses

When the game starts, press H (capital h) to get help on how to play.

Playing Tetris With Zsh Help

Play the game with the following keys:

  • left: h, j, cursor left
  • right: n, l, cursor right
  • rotate: c, i, cursor up
  • soft drop: t, k, cursor down
  • hard drop: space
  • quit: q

Posted on CuteMachine in zsh and terminal.

Jo's Profile ImageWritten by Jo who lives and works in Frankfurt building digital doodah. Stalk him on Twitter.

TOS • Privacy • Disclaimer