Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 742 Bytes

README.md

File metadata and controls

30 lines (25 loc) · 742 Bytes

Build Status

tetris

A command line tetris game you (or an AI!) can play in your terminal!

AI Playing Tetris

To Play

git clone https://github.com/alexandrinaw/tetris.git
cd tetris

Human Player

python tetris/game.py

Commands

  • up arrow: rotates piece
  • down arrow: makes currently falling piece fall faster
  • right arrow: makes currently falling piece move right
  • left arrow: makes currently falling piece move left
  • enter: makes currently falling piece fall all the way to the bottom
  • p: pauses the game
  • q: quits the game and exits

AI Player

python ai.py