Skip to content

ahnlak-dragonruby/dragontt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DragonTT

This is an implementation of the most excellent (if ancient) Tetris for Terminals, which I spent more time playing at University than I should have done.

It's the first thing I've built in DragonRuby, and the first thing I've done with Ruby for what must be close to 10 year so, be gentle.

My intention is to put together some notes to make this code a useful reference (if only in terms of how not to do things in a proper Ruby style) but - and I cannot say this loudly enough - I am not a Ruby or DragonRuby expert so don't take anything I do to be a recommendation :)

All that said, enjoy.

Scoring

Scoring in TT is wonderfully rudimentary. You get points for each piece you drop (ranging from 2 to 5 points depending on the piece) and points for clearing a line (10 points per line). There is no bonus for dropping. No bonus for clearing multiple lines at once.

Building

You will obviously need to have a copy of DragonRuby to be able to run this; on Windows, it should just be a case of dropping the dragonruby.exe executable into the same directory as this README and running it without arguments. I imagine it's a similar job on Linux / MacOS.

Releases

No releases published

Packages

No packages published

Languages