15Puzzle: a sliding-tile game in Ruby

Game: 15Puzzle

The repository for 15Puzzle was created on 29 January 2012. It is the oldest project in my portfolio, and it is a game: a four-by-four grid with fifteen numbered tiles and one empty space. You slide tiles into the gap until the numbers are in order.

Ruby, and a window toolkit called Shoes

The game is written in Ruby. For the window and the graphics it uses Shoes, a small toolkit for building desktop apps in Ruby. You start the game with one command, shoes main.rb. The code is split into main.rb and puzzle.rb, with the tile images in their own folder.

Old code ages

The README says it needs Ruby 1.9.x or older, and Shoes 3. Both are old requirements. That is a reminder that a project that runs today is not a project that will run in ten years, unless someone keeps it alive.

One game, two platforms

The repository has three branches. The main branch holds the core files only. A Windows branch and a Linux branch exist to maintain each version of the game separately. So the game was maintained for more than one operating system.

Why it is still here

It was a learning project, like much of my personal work. The code is on GitHub if you want to see what my code looked like in 2012.