This is mainly for editing and whatnot, but I'm programming some stuff for my AP Computer Science course, and well I need the feedback from another programmer(s) to see if I have made any mistakes anywhere. Attached is the game Nim, here are the rules:
* Two players can play, being able to enter their names
* 4 piles to chose from
* Each pile has a randomly generated number between 15-30
* Players chose either 1-3 stones from any pile
* The person who takes the stone loses
That's the gist of it right there. I didn't seem to find anything wrong, but then again, I programmed it. Can someone go through and see if there's anything that I could fix, code that I could add/cut, etc... Since this is for a grade, I'd appreciate serious/constructive comments only. Thanks.
*** Note: You do need Java installed to run these ***