NOTE: This was originally a Java project, and I already finished it. However, it was inconvenient for people to download the code to see how it worked, so I created a web-based version of the game.
This was done solely for the purpose of demonstrating the algorithm.