Week 2Back To Index
Developing a Strategy
During the second week of this program, you will have a chance to participate in a "Field Day" where you will get to act out the ZR game and begin to make the best plan you can to win the game. This will help you develop a program for a team player that you will use in an Intramural Competition in Week 3. You'll also learn much more about the math and physics involved in maneuvering the SPHERES satellites and about programming.
By the end of this week, you should:
Understand the basic math and physics concepts involved in maneuvering the SPHERES satellites, including:
- Newton's Laws
- Order of operations
- Grids and graphing
- Cartesian coordinates
- Understand the basic elements of the ZR game and programming the SPHERES
- Understand how the ZR game controls can be used in a computer program to maneuver the SPHERES satellites
- Be able to complete advanced programming tasks in the ZR IDE using the instructions provided
- Be able to work in a team to solve problems related to activities and your game strategy and coding
Now, let's get started by simulating the ZR game using one of the members of your team as the game player!
What's Your Strategy?
With this field day experience, you will get the chance to understand the game better by acting it out yourself. It will also help your team develop a strategy for coding your ZR player.
Note to educators: The Acting Out the Game Activity Guide will help you prepare for the main event of Field Day: acting out the game.
Have you ever thought about the importance of a comma? Consider its role in the statement, "Let's eat, Grandma!" This simple invitation to join in a meal becomes quite sinister when we remove the comma, becoming "Let's eat Grandma!" Thus, commas prevent cannibalism every day.
In mathematics, there are objects like the comma that can change the meaning of the function entirely. Most often, these objects are parentheses–they indicate that whatever is in the middle of the two parentheses should be done before what is on the outside. Consider the following examples:
4 + 5 × 3 = 19
(4 + 5) × 3 = 27
Here, the parentheses made a large difference into how the math was carried out–and on the answer. In order to make sure that the same answer is always given by a single equation, there is a set of rules called the "Order of Operations." These rules ensure, just like commas, that math is consistent, reliable, and non-criminal.
In Week 1, you learned about conditional statements. Now, work through the tutorial, The Conditionals: The Basics of "If-Then,", in which you will use a specific type of conditional statement ("If, Then" statements) as well as the logic operators you've learned about to program a SPHERES satellite to move to multiple locations.
Directions are an important part of getting around in our world. When you tell your friends how to get to your house, you don't just tell them how far they have to walk–you also tell them what direction to go. Without direction, your friends could end up in a completely different area of town.
Not only is direction important in getting to people's houses–it is also important in the world of math and physics. Vectors are used to describe direction and magnitude in mathematics. They are necessary when describing motion, forces, and movement in the grid.
To learn more about vectors, conduct a Vector Voyage.
What's in a Map?
This map and information about going from two to three dimensions are both included on this slideshow.
To Plot or Not to Plot?
To learn more about graphing, try this activity:
To learn more about Cartesian coordinates, try this activity:
- Simple Coordinates (Note: This activity requires a plugin)
Work through the next tutorial on conditionals and logic operators to further reinforce these concepts. This tutorial has two parts, which will allow you to practice programming with "If, Then" statements and logic operators and learn how to use the Debug feature of the ZR IDE.
In the first tutorial, Conditionals: More Fun with "If-Then" and Logic Operators, you will use an "If-Then" statement and some additional logic operators ('= =' and '! =') to show that the loop you created is called once per second by the SPHERES control system. In the second tutorial, Conditionals with Advanced Logic Operators, you will use still more logic operators ('and' and 'or') and conditional statements to change the position and attitude of the SPHERES satellite.
In Week 1, you learned about conditional statements. To review, look at the examples in the What If: An Introduction to Conditional Statements PowerPoint presentation. Then complete this tutorial, which will help you extend your understanding of conditional statements by introducing "If, Then, Else" statements.
What Forces Are Affecting the SPHERES?
Learn all about Newton's Laws:
To help you program your ZR player, it is helpful to learn about some more advanced programming components. To do so, review this slideshow and complete the tasks within it.
Now, you are ready to start programming. To begin, complete the Introduction to Game Mode tutorial, in which you will learn to use the game mode (as opposed to the free mode that you have been using up to this point). You will use this and the game manual while you are programming your player.
Then look at the Let the Games Begin slideshow.