Question: create a MATLAB program that plays the hot and cold game with the user. The goal of the program is to guess the two integer

create a MATLAB program that plays the hot and cold game with the user. The goal of the program is to guess the two integer values on a 1000 by 1000 grid selected by the user. However the target value cannot be written into the program, it has to be guessed using hotter, colder, or correct statements asked by the computer. Other information: Program must have an input statement for location in x and an input statement for the location in y
Inputs will be integers between 0 and 1000
Program must pick two points, and using only the relative distances (which is hotter) choose next steps.
Program is complete when integer position is found.
Program must count the number of steps (how many points are tested).
I will test the program against three locations.

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 Databases Questions!