Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.