

- #Water rocket simulation full
- #Water rocket simulation software
- #Water rocket simulation series
- #Water rocket simulation simulator
This occurs whenever any part of the rocket.

The boat will (slowly move) on the water at a randomly generated velocity (+x or -x).Landing phase: when the rocket is above the water, the player can use thrusters to control its descent.The rocket will ascend to a predefined altitude before thrusting to the right. Boost phase: when the rocket is initially taking off, the player has no control.Shall animate the rocket's flight during the boost and landing phases.Shall allow the player to increase the rocket's vertical velocity while the up arrow key is pressed (causing the main engine/thruster to fire).Shall allow the player to change the rocket's horizontal velocity by pressing the right or left arrow keys (causing the left/right thrusters to fire).Player Controls - during the landing phase, the simulator.Shall display the rocket's current velocity, fuel consumption, time elapsed (in frames), high score (to date), and num of crashes/landings.Shall graphically show and animate the rocket's thrusters if/when they fire.Shall draw the rocket, land, water, and landing boat.Graphics - during the simulation, your program.Shall be able to generate a new randomized environment without having to restart the program.The rocket, similarly, must be on land to start, but it may be placed anywhere from the left edge of the screen to the edge of the water (you can also center the rocket in the middle of the land).The boat must be on the water and can be placed anywhere from touch the land to touching the right side of the screen.Shall position the rocket and landing boat at random x, y coordinates.The y coordinates of the landscape must be stored in a list.The water's height shall not be higher than the land.The land shall take up no more than 20% of the screen width, and 30% of the screen height.Shall generate a random landscape (land and water).
#Water rocket simulation simulator
Simulation Initialization - when the simulator starts, your program.Shall close when the user hits the X button in the top right corner.Shall have a window title containing: "Rocket Simulator - YOUR NAME".Shall store and reference the window dimensions using variables.Your instructor will change these values while grading to see if your program scales appropriately. Shall initially be set to 1800 x 800 pixels (width x height).Graphics Window - the pythonGraph window.
#Water rocket simulation full
To receive full credit, your program must satisfy the following functional requirements: It is our hope, however, that these Gate Checks will allow you to tackle this problem in an incremental fashion.

To be clear: there are lots of small problems that you will need to solve as you work on this assignment.
#Water rocket simulation series
To help you manage this complexity, we have created a series of Gate Checks that will walk you through each major step in the program. PythonGraph is designed to be simple and easy to learn, but there is still a learning curve. You will also be working with a special graphics library (pythonGraph) that will allow you to quickly draw the game. Not only will you be producing a game, but you will also design and implement an AI that can automatically land the rocket on the boat. Your browser does not support HTML video.īe warned! This programming assignment is significantly more challenging than the ones you have worked on thus far. The simulation will then automatically reset itself to the same exact configuration and allow the player/AI to try again. Each time the simulation ends (either by the rocket landing on the boat or crashing into the ocean/ground), your program will evaluate the player/AI's performance using criteria such as fuel consumption, softness of landing, etc., and assign him/her a score. The player will then have to control the rocket's thrusters using the arrow keys in order to make sure it safely lands on a randomly positioned boat in the ocean. After the rocket has climbed to a predefined altitude, it will turn towards the right and hand over control to the player (and eventually, an AI of your design). In your simulation, a rocket will start off on the left side of the screen and take off.
#Water rocket simulation software
This assignment will help you comprehend the significance of SpaceX's achievement, and gain a deeper appreciation for the amount of software that needed to be written (and tested) for this "pipe dream" to become reality. In this assignment, you will develop a rocket landing simulator using the pythonGraph library. In 2018, SpaceX's Falcon 9 rocket became the first space launch vehicle that was capable of taking off from the Earth, reaching orbit, and autonomously landing on either the land or sea (check out this link, it's amazing!).
