Skip to content

tetris written in C for linux terminal, featuring top notch ASCII graphics based on the original tetris game

License

Notifications You must be signed in to change notification settings

anthepro/terminal-tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terminal-tetris

Tetris written in C for linux terminal, featuring top notch ASCII graphics based on the original tetris game.

Screenshots

Alt text

Alt text

Alt text

Instructions

Just compile it and run it, as simple as that. The game was written for linux terminal, it should work on most *nix systems... On windows, you can probably get it to run using MinGW or Cygwin, but I don't guarantee it will work as intended (it probably will, but some keys might not work, Cygwin users might have experience flicker). A much better solution would be running it on a *nix machine over ssh (yes, you can play it that way). If you want to play it on your phone, again, just ssh to a server and have at it.

Rules

Well, regular tetris stuff. I am using a custom rotation system based on Nintendo Rotation System. The same goes for scoring. No wall kicks, but there is a lock delay (equal to one drop interval). After you clear 10 lines, level is increased by 1. Maximum level is 20.

Free tip: button mashing is usually faster than keeping the button down :) (rotation being the obvious exception, try holding that down for the lulz)

Key bindings

If you want to change key bindings, edit source file, it's rather obvious (line 33).

Defaults are as follows:

  • Q: move left
  • E: move right
  • W: rotate
  • A: drop
  • D: reset
  • Z: show/hide next
  • C: show key bindings
  • K: exit
  • T: toplist (available only in post game screen)

Have fun playing the game :)

About

tetris written in C for linux terminal, featuring top notch ASCII graphics based on the original tetris game

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published