Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xasos/gameofnim
Nim in Java, calculated using the Sprague-Grundy Theorem
https://github.com/xasos/gameofnim
Last synced: about 1 month ago
JSON representation
Nim in Java, calculated using the Sprague-Grundy Theorem
- Host: GitHub
- URL: https://github.com/xasos/gameofnim
- Owner: xasos
- License: mit
- Created: 2014-01-25T21:25:27.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-04T17:38:00.000Z (over 10 years ago)
- Last Synced: 2024-10-14T21:18:38.704Z (3 months ago)
- Language: Java
- Homepage:
- Size: 178 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
GameOfNim
=========Created a normal play Nim game in Java, where two players (one can be the CPU) take turns taking blocks from a heap. Uses ideas from the Sprague-Grundy Theorem to calculate the best number of blocks for the computer to take. When playing against the computer, a player can choose from three modes: Easy, Medium, and Hard.