Boat Racing Game Challenge #2 By Chris Brown Under the direction of Professor Susan Rodger Duke University, January 2013 Based off of the Boat Racing Game.

Slides:



Advertisements
Similar presentations
Getting Started With Alice: The Basics By Jenna Hayes under the direction of Professor Susan Rodger Duke University July
Advertisements

Visual Lists By Chris Brown under Prof. Susan Rodger Duke University July 2012.
In this tutorial, we are going to create: A race car that the user can control with the arrow keys for direction and speed. A simulated road with a striped.
Alice Learning to program: Part Four Creating Sounds, Making Billboards, Fun with 3-D Text, New Events, and Rotating Objects by Ruthie Tucker and Jenna.
Alice Programming Assessment: Parameters Samantha Huerta Under the direction of Professor Susan Rodger Duke University July 2014.
Coloring Randomly: Random Selection in Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008.
How Tall Are You? Introducing Functions By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008 Updates made June 2014 by.
Using Functions in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University July 2008.
Lets Play Catch! Keeping Score in Alice By Francine Wolfe Duke University Professor Susan Rodger May 2010.
Using Functions in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University July 2008.
Matlab tutorial course Exercises 4:. Exercises – for loops Download the scripts loops_example.m and if_else_example.m, run the code Download the function,
Run / Walk - Speed Lab Drexel STEM GK-12 Program David Rosen.
Lights Camera Action! Part 3: BDE Events By Deborah Nelson under the direction of Professor Susan Rodger Duke University July 2008.
Class-Level Variables in Alice By Jenna Hayes Under the direction of Professor Rodger Duke University, July 2008.
Wizard Game: Class-Level Variables in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July
Methods Tutorial: Part One By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 9, 2008.
Alice Learning to program: Part Two by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2008.
Repository/Site Upload Instructions By Elizabeth Liang Duke University, May 2009 Alice Project under Prof. Susan Rodger.
Calculator Challenge By: Chris Brown Under the direction of Professor Susan Rodger Duke University, January 2013.
Making a Boat Racing Game in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2010.
What Is Speed? All the runners in the one kilometer race will start at exactly the same time. They will all go exactly the same distance. One runner.
Alice Learning to program: Part Three Camera Control, Invisibility, and 3-D Text By Ruthie Tucker and Jenna Hayes, Under the direction of Professor Rodger.
Nonvisual Arrays and Recursion by Chris Brown under Prof. Susan Rodger Duke University June 2012.
Alice Pong Recreating Pong in Alice By Elizabeth Liang under the direction of Professor Susan Rodger Duke University June 2010.
Changing Color, Using Text Objects, and Random Selection in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2008.
Acceleration & Speed How fast does it go?. Definition of Motion Event that involves a change in the position or location of something.
An Introduction to Alice (Short Version) – Extras! Yossra Hamid Under the Supervision of Professor Susan Rodger Duke University, June 2014 This is a continuation.
Making a Timer in Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University July
Piñata Game: Keeping Score in Alice By Maggie Bashford Professor Susan Rodger Duke University July
Simple Quiz Assessment David Yan Under the direction of Susan Rodger Duke University June 2015.
The Essentials of Alice (Bunny) By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008.
Illuminating Computer Science CCIT 4-6Sep
Knowledge Management Putting what you’ve learned to work!
Nonvisual Arrays by Chris Brown under Prof. Susan Rodger Duke University June 2012.
Distance Challenge By: Chris Brown Under the direction of Prof. Susan Rodger Duke University, January 2013.
An Introduction to Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University, June 2009 Updated June 2014 by Ellen Yuan.
BDE Assessment Erin Taylor Under the direction of Susan Rodger Duke University June 2015.
PLICKERS! Calculate Speed. The fastest recorded speed of a hydroplane boat was 469 miles in 7 hours. what was its record breaking speed? A. 90 mph B.
An Introduction to Alice By Chris Brown under the direction of Professor Susan Rodger Duke University, March 2013.
Illuminating Computer Science CCIT 4-6Sep
Boat Racing Game Challenge #3 By Chris Brown Under the direction of Professor Susan Rodger Duke University, January 2013 Based off of the Boat Racing Game.
Boat Racing Game Challenge #4 By Chris Brown Under the direction of Professor Susan Rodger Duke University, January 2013 Based off of the Boat Racing Game.
Alice Programming Assessment: Random Number Variables Alex Boldt Under the direction of Professor Susan Rodger Duke University May 2015.
VNSC Handicap system How does it work ?. Basic principles Boats – Different sail sizes, make similar boats sailed by equally competent sailors move at.
Build Your Own Game Now! HIDDEN OBJECT KIDS ADVENTURE GAME SOURCE CODE SELLMYSOURCECODE.
Looping Assessment Erin Taylor Under the direction of Susan Rodger Duke University June 2015.
1. Which variable is on the Y axis ? 2. Which variable is on the X axis? 3. Where was the object at 4 seconds? Graph 1.
The Essentials of Alice (Bunny)
Getting Started With Alice: The Basics
An Introduction to Alice (Short Version)
Teaching Characters to Walk: Learning Methods, Part 1
Changing Color, Using Text Objects, and Random Selection in Alice
Alice 3 Looping Assessment
Let's Race! Typing on the Home Row
Alice Learning to program: Part Three By Ruthie Tucker and Jenna Hayes, Under the direction of Professor Rodger Duke University, 2008.
Memory Matching Challenge
Please turn off your computers… …we will play a little game first 
Boat Racing Game Challenge #1
Speed and Distance-Time Graphs
Learn a bit about Computer Science Duke Femmes Event with Prof
An Introduction to Alice
Restricting an Event with a Conditional
Distance–time graphs 18 January 2019 Objective: To use distance–time graphs to analyse the movement of objects.
Write Definitions for:
How Tall Are You? Introducing Functions
Learning to Program: Part 3 Camera Control, Invisibility and 3-D Text
Getting Started With Alice: The Basics
under the direction of Professor Susan Rodger
Matlab tutorial course
Presentation transcript:

Boat Racing Game Challenge #2 By Chris Brown Under the direction of Professor Susan Rodger Duke University, January 2013 Based off of the Boat Racing Game by Jenna Hayes

Boat Race In this challenge, you must drive the boat to travel through 10 arches in a race course in order to win the game. The faster your time, the better you will do! To make things more difficult, the arches are placed in a random position each time you run this game, so no two courses will be alike. We want you to add to this game, so that in the end you will know the average distance between arches.

Challenge For this version of the boat race world challenge, you will need to complete the “average” function to calculate the average distance that the boat travels to go through each hoop in the game, and then modify the “win” method to display the average speed to the user once they have completed the game. The program is already set up to collect the distances between each arch, you will use those to calculate the total distance between each of the arches that you must pass through.

Average Distance We want to calculate the average distance between pairs of arches. The code provides a list of this information called distances for you to use to calculate the final average. distance Start Finish

world.average You are given a list of the distances between pairs of arches and you will need to calculate the average distance between two arches (meters/arch) it took the boat to finish the game. Hint: There are 10 total arches in the game and the boat starts a short distance before the first arch.

world.win Now, modify this method so that the text that once displayed the timer displays the average distance the boat travelled between arches. Once again, feel free to explore Alice and add other aspects to the winning screen of the game. For example, have a fish come up out of the water to congratulate you on your victory!