I was assigned this homework two days ago. But the main thing is that I been researching the 13 stones' game and I can't find it. Can someone give me a link or the rules to the 13 stones please.
In this activity, you simulate the game of Thirteen Stones. In this game, two players alternate taking 1, 2, or 3 stones from a pile of 13 stones are left. The last player to pick up a stone is the winner.
Create a program that simulates the Thirteen stones game. Your program on should ask the players to select the number of stones they want to remove from the pile. If a player enters an invalid number of stones, the game will be terminated. If the selection is valid, the selected number of stones should be removed from the pile. Continue play until no stones are left and display a message indicating the winner ( the last player to pick up a stone).
Input: Number of stones (1, 2, or 3) chosen on a given turn
Output: A message declaring the winner