Challenge #6
Challenge: Write a Guess My Point program. The program should choose a random point on the xy-plane then ask the user for an x-coordinate and a y-coordinate. The program should then give feedback to the user about how their guess compares to the chosen point (i.e. the x-coordinate is too high and the y-coordinate is too low). It may be helpful to change the backdrop to the xy-grid.
Video Tutorial: Guess My Number
Extensions:
1. Show the points guessed on the screen as they occur.
2. Draw a square at a random location on the screen and have the user guess the x and y-coordinates of a point inside the square. This might be more interesting without the xy-plane as a backdrop.
MTH1W Curriculum Links:
C2.1 Use coding to demonstrate an understanding of algebraic concepts including variables, parameters, equations, and inequalities
C2.2 Create code by decomposing situations into computational steps in order to represent mathematical concepts and relationships, and to solve problems