Hi i realy need help writing this program im not sure how to do it does anyone know how to write the code for this program in microsoft visuall studios C++
Develop a version of the Nim game in C++.
This version of the Nim game consists of a pile of stones, ranging from 10 to 16. The player and the computer will alternate (take turn) to remove 1, 2, or 3 stones from the pile. The player will go first. The one, who takes the last stone, loses. The number of stones in the pile will be randomly generated at the beginning of the game and be displayed. At the end of a game, the player will be prompted to either start another game or to quit.
This program will keep track of the total number of games played and the total number of games the player has won. The number of stones removed by the computer will be randomly decided. This program will perform the necessary error checking: the number of stones to remove cannot be greater than 3 or the number of stones left in the pile. In this program, you will implement a function with the following prototype:
int myRandom(int upperLimit);
This function generates and returns a random number between 1 and upperLimit.