Rocket Landing Simulator

Gate Check #4 - Artificial Intelligence
Go Back to the Assignment Description

Part 1 (Overview) - Part 2 (Getting Ready) - Part 3 (AI Logic Part I) - Part 4 (AI Logic Part II) - Part 5 (AI Training)

Getting Ready

Before we can get started with our AI, we need to perform some quick housekeeping tasks.

First, go ahead and update the Gate Check # on line 3 (just like we have on all of the other gate checks).

Second, we need to make sure that the values that you use in your simulation are similar to the ones we will be using in the competition. Check your code to make sure that:

Finally, we need to modify our main animation loop so that it supports AI training/learning. In the AI block, we learned that we need to expose our AI to many different scenarios in order to train it properly. Why? I'm so glad you asked . .

Once you have completed the above steps, go to the "else" statement in your main animation loop. As a reminder, this code executes every time a simulation run ends (i.e., when is_simulation_over() returns true). Modify the code in the else statement so that it does the following:

Testing

When you are done, play your game and let the rocket crash 5 times. If the simulation generates a new scenario on the 6th run, you are good to proceed to the next page.

Proceed to the next section.