1 / 6

Boat Racing Game Challenge #1

Boat Racing Game Challenge #1. 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.

gaia
Download Presentation

Boat Racing Game Challenge #1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. 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. The faster your time, the better you will do! We want you to modify this game so that you will know the average time your boat travelled between each pair of arches when the race ends.

  3. Average Time • We want to find the average time for each arch in this game. Time Start

  4. Challenge • For this challenge in the boat race world, you will need to complete the “average” function to calculate the average time of the boat between a pair of arches that it had to travel through and modify the “win” method to display the average speed between pairs of arches to the user once they have completed the game.

  5. world.average • You are given the total time that the game took and you need to calculate the average amount of time/arch. • Hint: There are 10 total arches in the game.

  6. world.win • Now, modify this method so that the text that once displayed the timer displays the average time of the boat. Add other methods and explore Alice to see what you want to add to this, such as having the boat explain (“say”) what the value that you computed represents.

More Related