|
Forum Index : Microcontroller and PC projects : NIM Game
| Author | Message | ||||
| William Leue Guru Joined: 03/07/2020 Location: United StatesPosts: 405 |
Another little game I wrote for my grandkids to have fun with. You have probably played or at least heard of NIM. It has been around in one form or another for thousands of years. Basically it consists of some pits scratched into the dirt or sand with a few pebbles in each pit. Players take turns removing pebbles until none remain, with the last player to take a pebble either wins or loses, depending on whether you are playing a 'normal' or 'misere' game. There's a bit more to the game, of course. The program includes instructions. You can play versus the computer or with two human players. You can play in 'normal' or 'misere' mode, and you can choose the number of pits and pebbles, or let the computer choose some random values for each. Enjoy! -Bill Nim.zip |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |