Modify the program so that the computer plays a more informed game.

Modify the program so that the computer plays a more informed game.

LANGUAGE: C++

CHALLENGE:

The computer player in Programming Project 15.5 does not play the number guessing game very well, since it makes only random guesses. Modify the program so that the computer plays a more informed game. The specific strategy is up to you, but you must add function(s) to the Player and ComputerPlayer classes so that the play(Player &player1, Player &player2) fucntion can send the results of a guess back to the computer player. In other words, the computer must be told if its guess was too high or too lo, and it alos must be told if its opponents last guess was too high or too low. The computer can use the information to revise its next guess.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level