subject

Josh and Daniella are playing a game using a bunch of coins. The players pick several coins out of a pile in turn. Each time a player is allowed to pick 1, 2 or 4 coins, and the player that gets the last coin is the winner. Assume that both players are very smart and he/she will try his/her best to work out a strategy to win the game. For example, if there are 2 coins and Daniella is the first player to pick, she will definitely pick 2 coins and win. Given the number of coins and the order of player you are required to write a program to calculate the winner of the game, and calculate how many different strategies there are for he/she to win the game.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:00
Our primary purpouse as electricians is to do wich of the following core concepts? a: install electrical components in a way they can be upgraded b: install electrical equiptment in a way that reduces heat c: install electrical systems in a safe manner d: only b and c
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Which demographic challenge is europe currently experiencing? a. an aging and decreasing population b. a baby boomc. an unequal distribution between males and females d. a large group of teenagers moving through the school system(i chose a but i'm unsure)
Answers: 1
question
Computers and Technology, 23.06.2019 07:50
Most shops require the technician to enter a starting and ending time on the repair order to track the actual time the vehicle was in the shop and closed out by the office. this time is referred to as _ time ? a. comeback b. ro c. cycle d. lead
Answers: 1
question
Computers and Technology, 24.06.2019 14:00
What are the different components of the cloud architecture?
Answers: 2
You know the right answer?
Josh and Daniella are playing a game using a bunch of coins. The players pick several coins out of a...
Questions
question
English, 12.12.2020 17:00
question
English, 12.12.2020 17:00
question
Mathematics, 12.12.2020 17:00
Questions on the website: 13722362