Welcome to the game of Nim. In this game, we will begin with
a pile of coins on the table. On each turn, you and I will alternately
take some number of coins from the table. By default this is either 1, 2,
or 3 coins. However, you can change the maximum number allowed to be removed
in the game options. The player who takes the last coin loses. Good luck...
This game was originally a homework assignment of mine for a C course I took in
undergrad. Going well beyond what was required, I also created a "Hard" version of
the game and a few additional options. I've always had great memories of this program
and I wanted to port it to the web as a way to learn the basics of PHP.
Some of the tools I've used in the development of Nim are NetBeans, Apache Server,
Browsers tested: IE 9.0+, Firefox, Chrome.
Surely there are still a few bugs to work out and a couple of features I'd like to add.
Feel free to make any suggestions by using the Feedback form. Enjoy!
Added feature possibilities:
- Fix the coin/coins text
- Mobile Version of Site
- Turn choice option?
- Graphical input?