Question: using dev c + + compiler Complete the following program: You need to write a program to play the game 2 1 goldfish. The game

using dev c++ compiler Complete the following program:
You need to write a program to play the game 21 goldfish. The game is quite simple in nature... there are 21 goldfish in a fishbowl. Two people can play the game, for the purpose of this assignment the computer will act as player one. Each player can remove 1,2 or 3 goldfish from the fishbowl in a given turn. The player to remove the last goldfish wins the game. For our game the computer will go first and being that the computer is always smarter than a person we must make it so that the computer always wins.
Do not use global avriables for this program.
Use function prototypes prior to main() then define all of the fucntions after main().
You will need to implement 4 fuctions other than main as described below.
int computerRick(int fish_in_bowl, int last_taken_ human)
{
//het the computer pick it's goldfich
//the trick here is to make sure that the computer picks enough goldfish to add the total
}//up to 4 between this pick and the humans pick
int humanRick(int fish_in bewll)
using dev c + + compiler Complete the following

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!