Skip to content

Android application that calculates winning moves for normal-play version of the mathematical game of Nim

Notifications You must be signed in to change notification settings

abrar360/NimSolver

Repository files navigation

NimSolver

Android Application used to win the normal play version of the mathematical game of Nim. The stack values are inputted into the app, and the optimal calculated move is outputted.

Algorithm

  1. The total binary digital sum (nim-sum) of the stack values is calulated (sum A)
  2. The nim-sum of the total nim-sum and each stack value is then calculated (sum B)
  3. The stack with a higher stack value than Sum B is then reduced to its Sum B value.

About

Android application that calculates winning moves for normal-play version of the mathematical game of Nim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages