Nim Multiplication
JavaScript
The Nim Product is used in solving two-dimensional Coin Turning Games.
See "Winning Ways" by Berlekamp, Conway and Guy, or my book "A Course in
Game Theory".
Given nonnegative integers, x and y, both less than 256,
the program computes the nim product, nimprod(x,y),
See A Computer Program for Nim Multiplication.
for programs computing nimprod(x,y) in C and Mathematica.
For example, nimprod(16,255)=2