git clone git@github.com:renuo/ruby-tetris.git && cd ruby-tetris && bundle install && ruby game.rb
git clone git@github.com:renuo/ruby-tetris.git
cd ruby-tetris
bin/play
or
git clone git@github.com:renuo/ruby-tetris.git
cd ruby-tetris
bundle install
bin/play
or
bin/run
or ruby game.rb
[Q]
Exit Game
[W]
Rotate (or Arrow Up)
[S]
Move Down (or Arrow Down)
[A]
Move Left (or Arrow Left)
[D]
Move Right (or Arrow Right)
- colorize
- curses
- ruby-terminfo
####@tetris
[1]
[1]
[1]
[1]
[1, 1]
[1, 1]
[1, 0]
[1, 1]
[1, 0]
[1, 1]
[1, 0]
[1, 0]
[1, 1]
[0, 1]
[0, 1]
[1, 0]
[1, 1]
[0, 1]
[0, 1]
[1, 1]
[1, 0]
@current_tetris = [ 0 , 0 , 0 , @tetris.sample]
[X-coordinate,Y-coordinate,rotation, tetris ]