Tower of Hanoi - Game

Roles: Developer
Project: Small Game for Skill Test
Length: 6 hour project in 2014, Spring
Snapshot: Was tasked with making the Hanoi game as a skill test when interviewing for an internship.

hanoi_logo

Overview

Doing an internship was part of the CSG program. I ended up doing some work at the small indie Bloodleaf Studio. While going through the process (I was applying as a Unity 3D programmer) they asked me to make tower of Hanoi in Unity. The deadline was a week, wanting to impress I decided to aim for a single day.

The rules of Hanoi are simple and I used the new 2D sprites for the game keeping it simple. I used a system that I had made before for GUI (used callbacks, drag and drop positioning, and developed for 2D sprites).

Not knowing what exactly the mini project requirements were, save for a game of Tower of Hanoi, I made it graphical, had a timer and put in a solve option, which when checked would solve the puzzle in the least amount of moves.

Solver

For the solver part I looked up an algorithm for solving it. The solution was to use recursion. Also by decoupling the GUI from player inputs I was able to allow the solver to play it out, turning out to be a simple feature to add.

hanoi demo gif