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 goldfish. The game is quite simple in nature... there are 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 or 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 fuctions other than main as described below.
int computerRickint fishinbowl, int lasttaken 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 between this pick and the humans pick
int humanRickint fishin bewll
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
