Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
README.md
Rakefile
console.rb

README.md

Lattice

Lattice is a Drop7 clone implemented in Ruby. It includes a very minimal console "game" for dev purposes. Drop7 is awesome and you should buy it. If you don't know Drop7 and you want to try before you buy, or you can't figure out how to play the console version included here, check the original Web version in Flash.

Many features are not yet supported. Also, note that by "console game" I mean "console" in the programmer sense, not the gamer sense. It runs on your command line, not an XBox. Although it could in theory run on an XBox if you installed Linux and Ruby on it first.

Disclaimer

This project makes no claims as to the awesomeness of its code base. This code may not be awesome.

Tests

Tests are done in test/unit, because it was fast. Console mini-game does not have tests but has reached the point where it should. Block hack in grid.rb (for console mini-game UI) also lacks tests.

Structure

Pretty much all the code lives in the grid, or game board; most of the code works on arrays rather than objects. This was not a conscious decision, and might just be a hangover from writing too much Perl when I was younger. (Ah, the wild days...)