Presentation is loading. Please wait.

Presentation is loading. Please wait.

Test the Towers of Hanoi Algorithm

Similar presentations


Presentation on theme: "Test the Towers of Hanoi Algorithm"— Presentation transcript:

1 Test the Towers of Hanoi Algorithm
Scratch Test the Towers of Hanoi Algorithm Module 1 Lesson 5 Playing with Music

2 Checking your Algorithm
Go to the following link (Same on as on the PowerPoint from Monday) Use this website to test your algorithm If it works have your neighbor test it, sign it off and turn it in.

3 Learning Objectives To learn about Event Handlers by programming scripts that are triggered by input from the computer keyboard. To allow students to create a sequence of commands to play a musical scale Apply these skills for the Battle of the Bands challenge.

4 Responding to Triggers
‘When’ commands are the main way a script detects an event when user input is received.

5 Right Arrow Moving Forward
Your Turn. Make the Cat move up, down, left, and right. Extensions Have it turn when it goes another direction. Experiment with the change x by, change y by, move …

6 The notes are one half step differences.
Your turn #2, using the playnote command, write a program that will play a scale when the space bar is hit. Hint: The notes are one half step differences. A major scale goes 2 half steps, 2 half steps, 1 half step, 2 half steps, 2 half steps, 2 half steps, one half step.

7 Making Music Possible solution for creating a scale.
How can you use these triggers to make your keyboard into a piano, … Battle of the Bands Challenge Who can get Scratch to put on the best show? Requirements: Use the play sound and play drum commands. Create an original song/combination of sounds No meow!! Include at least two comments Include project notes: Name, Date, Name of the Project Demonstrations in class tomorrow. Save it as YourNameBattleLesson5 Making Music


Download ppt "Test the Towers of Hanoi Algorithm"

Similar presentations


Ads by Google