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.

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.
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.
This game is loosely based on the Whack-A- Mole arcade game.  Each game starts with 45 seconds of play.  Moles randomly pop out of holes on the landscape.
Session 5 of 10 Review + Multiple Sprites
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
Calvin and Hobbes Teach Properties and Functions Created by Daniel MacDonald under the direction of Professor Susan Rodger Duke University June 2013.
Creating Functions Deborah Nelson Duke University Professor Susan Rodger July 22, 2008.
/t/ / I d/ /d/ Try Again Go on /t/ / I d/ /d/
1 Quiz Template: Click on the match By Deborah Nelson Duke University Under the direction of Professor Susan Rodger July 2009.
Which animal is it?.
Working with Numbers in Alice - Converting to integers and to strings - Rounding numbers. - Truncating Numbers Samantha Huerta under the direction of Professor.
by Chris Brown under Prof. Susan Rodger Duke University June 2012
Making a Timer in Alice.
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.
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
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.
Camera Control: Learning to Use the Camera in Alice By Henry Qin, edited by Jenna Hayes under the direction of Professor Susan Rodger Duke University,
Camera Control: Learning to Use the Camera in Alice By Henry Qin, edited by Jenna Hayes under the direction of Professor Susan Rodger Duke University,
Nonvisual Arrays and Recursion by Chris Brown under Prof. Susan Rodger Duke University June 2012.
 Make sure you are subscribed to announcements on Moodle.  Activity 4 will be due 48hrs after your lab ends.
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.
By Giulio Binaghi RMHS. Please go to www. socrative.com.
Methods Tutorial: Part Two By Deborah Nelson Duke University Professor Susan Rodger June 16, 2008.
Animating Objects in Groups: Using Arrays and Lists By Ruthie Tucker under the direction of Professor Susan Rodger Summer 2008.
By Melissa Dalis Professor Susan Rodger Duke University June 2011 Multiplication Table.
A Simple Quiz: Ask User Functions. By Lana Dyck under the direction of Professor Susan Rodger Duke University June 2009, added Part 2 July 2011.
An Introduction to Alice (Short Version) – Extras! Yossra Hamid Under the Supervision of Professor Susan Rodger Duke University, June 2014 This is a continuation.
Program #2 Cell Phone Usage ….Let’s start with understanding the problem!
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
1 ball, 2 ball, red ball, blue ball By Melissa Dalis Professor Susan Rodger Duke University June 2011.
Simple Quiz Assessment David Yan Under the direction of Susan Rodger Duke University June 2015.
Can I get your number? By Melissa Dalis Professor Susan Rodger Duke University June 2011.
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
Sharing Alice v2 Exporting Movies, Code, and Web Pages By Elizabeth Liang Edited by David Yan under the direction of Professor Susan Rodger Duke University.
1 Quiz Template: Using the ‘ask user’ functions By Deborah Nelson Duke University Under the direction of Professor Susan Rodger July 2009.
Balancing the scales: Inequalities By Melissa Dalis Professor Susan Rodger Duke University June 2011.
Nonvisual Arrays by Chris Brown under Prof. Susan Rodger Duke University June 2012.
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.
Distance Challenge By: Chris Brown Under the direction of Prof. Susan Rodger Duke University, January 2013.
Marble Racer. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Random Numbers Random numbers are extremely useful: especially for games, and also for calculating experimental probabilities. Formula for generating random.
An Introduction to Alice By Chris Brown under the direction of Professor Susan Rodger Duke University, March 2013.
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.
I have used Scratch, to program a guide to internet safety. This is done by using QR codes to make it more interactive and interesting for people playing.
Using Placeholders to Simplify your Methods: Learning Methods, Part 2 By Deborah Nelson Duke University Professor Susan Rodger June 16, 2008.
Headshots in Alice Duke University Professor Susan H. Rodger Gaetjens Lezin July 2008.
How Tall Are You? Introducing Functions for Alice 3 By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008 Updates made.
The Essentials of Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University May 2009.
A Simple Quiz for Alice 3.2:
Let's Race! Typing on the Home Row
Memory Matching Challenge
Boat Racing Game Challenge #1
A Simple Quiz for Alice 3.2:
Restricting an Event with a Conditional
Learning to Program: Part 3 Camera Control, Invisibility and 3-D Text
Relational Expressions
under the direction of Professor Susan Rodger
Restricting Events Creating Conditional Events in Alice By Henry Qin
Presentation transcript:

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 by Jenna Hayes

Boat Race In this world, you must control a boat to travel through the 10 arches in the race course in order to win the game. Try to complete the race as fast as possible! We want you to modify this game so that you will know the average time it takes you to complete one game over multiple games.

Average Time We want to find the average time it takes you to complete one game out of as many games you decide to play. Every time you finish a race, Alice will ask you if you want to play again. If you select “Yes”, then the values from the race you just completed will be saved. If you click “No”, then we want Alice to display the average time it took you to finish the number of games you played.

Average Time

Challenge This challenge is a more advanced version of Challenge #1. In the boat race world, you will need to complete the “average” function to calculate the average time it takes you to complete a series of games. You will also need to modify the “win” method to prompt the user and ask if they want to play again, then display the average time it took them to completed the game when they are done playing.

Complete world.average You will be given timeList, a list of the total times that each game took along with games, a variable to keep track of the number of games. You will need to calculate the average amount of time per game.

Complete world.win First, we will need to change the world variable playAgain to see if the player wants to try the game again to get a better score. To do this, go under world functions and set playAgain to the function “ask user for yes or no”.

Complete world.win (Part 2) Now, add to this method so that if playAgain is true, the world will add the current time to the timeList and increment the number of games played, then reset everything to start the game over. Make sure to use the reset method already created for you. If playAgain is false, then have the boat say what the average time was for all of the games out of how many games you played (i.e. “You completed the game in an average of _____ seconds for _____ games.”), and add your own animation at the end.