December 13th, 2004


Octagons game Java applet

Well, I finished phase one of my Java applet game project. Now, two players can play the paper and pencil game Octagons on their computer. This was originally published in New Rules for Classic Games by R. Wayne Schmittberger.

Basically both red and blue wish to connect their sides of the board through half-octagons and squares. Since the first player has a distinct advantage, the pie rule is added. The pie rule means that the first player will play red and then the second player will get to choose whether to play red or blue. This ensures a balanced game. During each turn, you are allowed either two squares or one half-octagon. So, find a friend and give it a try! You can play it at . Be sure to enable the status bar at the bottom of your browser so you can see whose turn it is!

The only feature that I must add to complete the program is to check for victory and allow the players to play again. Ideally, I would like to set it up so people could play each other over the Internet. Even more ideally (but I really doubt it), I could set it up so that you can play the computer, but I don't see this happening in the foreseeable future. Oh yeah, I do however see much testing in the future. I'm sure there are lots of bugs still in it... if you happen to find any, feel free to let me know! Also, special thanks to Riko for the help with the mouse input!

Happy gaming! For a more detailed analysis of the game itself, I recommend . Oh yeah, it took me about 10 hours of coding to get this far...

Collapse )