A C ++ program to implement Game of Nim . The program assumes that both players are playing optimally
#include <iostream> NEW_LINE #include <math.h> NEW_LINE using namespace std ; #define COMPUTER  1 NEW_LINE #define HUMAN  2