Game Controller Lesson Five.

Slides:



Advertisements
Similar presentations
1/8 AND, OR and NOT b How many boys? b How many girls? b How many blue? b How many red?
Advertisements

7-4 Lesson 7-4 Example 1 Use the bar graph “Championship Series” to compare data. How many runs did the Cougars score in Games 4 and 5 combined? Example.
May 12-15, 2011 (red) May 6-11, 2011 (light red) Permanent Water (blue)
The Color Wheel Miss Sawyer Kindergarten Begin Lesson Plan.
1 times table 2 times table 3 times table 4 times table 5 times table
Challenge #1 – Relay Race Robot #1 will be randomly placed on starting line #1, #2 or #3. Robot #1 will drive until it detects the “Dark Line” - Robot.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Investigation #1 Factors and Products.
Probability of Compound Events
Introduction to Probabilities. Have you ever heard a weatherman say there is a % chance of rain tomorrow or a football referee tell a team there is a.
How to Play Baskit Ball By Jack Basket ball is a game of defence and allfence. There are five people on the cort for each team.
Geometry. 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 are.
Counter Probabilities Teacher's Notes Topic: Probability
1 x 2 Game 1: One Player Game If you select a number sentence, give the answer. If you select an answer give the number sentence that has that answer.
Lesson 10.5 AIM: The Game of Pig. DO NOW What is a strategy? Give an example from your daily life of how you use strategies.
By the end of this lesson you will be able to explain/calculate the following: 1. Mean for data in frequency table 2. Mode for data in frequency table.
A ball should go either to the left or right after hitting the pin, depending on the random number used. 01 Four random numbers in a sequence are needed.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Tables Learning Support
MATLAB Lab Simulating Billiard Game Modify hitball.m and myball.m to simulate 3-cushion billiard game. Rules: –two players –three balls.
Module 5 Lesson 9. Objective  Relate manipulative representations to the addition algorithm.
 What do you think it means for an event to have a probability of ½ ?  What do you think it means for an event to have a probability of 1/4 ?
5-4 Your brother gave you two bags of pens. One bag contained 3 blue pens and 9 red pens. The other bag contained 6 red pens and 4 green pens. Which bag.
Level 4/5 Booster Lesson 11B Probability.
Starter What is BBC micro:bit?
Prezentacii.com Welcome to the lesson.
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
--- Price List --- A - Marshmallow: £0.20 B - Bubble gum: £0.30
Stage 1 Before you start to script the game you need to create the assets. Stage 1 will help you to create your background image, score zones, paddles.
WHAT IS PROBABILITY?.
Sample space diagrams 1. A blue and a red dice are thrown and the scores added together. (a) Complete the sample space diagram. (b) What is the probability.
@TeacherToolkit, license CC BY-NC-ND 3.0
Lesson 4 – Glowing pendulum
Objective – Teach players to run with the ball and scan the field
Times Tables.
Maths Games ©Copyright
BBC Microbit.
LESSON 1 THE OLD AND NEW CREATION Genesis 1
Lesson 10-5 Experimental Probability
The One Where You Scratch
BBC Microbit.
BBC Microbit.
Game Controller Lesson Three.
Game Controller Introduction.
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
Lesson 10-5 Experimental Probability
JACKS OPEN JACKS OPEN INSTRUCTIONS
Lesson Objectives To understand how to make sprites interact
Game Controller Lesson Two.
Move in Two’s From the card Pass between two’s. T T
COURSE 3 LESSON 10-1 Displaying Frequency
Short Passing Technique Practice 1.2 teams of 5
Finishing Technique Practice 1.4 players, 4 servers + 2GK’s.
Lesson 2.
BBC Microbit.
Switching Play Technique Practice
Creating Space Technique Practice
Ratio: Converting ratio to fractions
Technical Foul Red 10 Holding 30-seconds.
BBC Microbit.
Game Controller Lesson Four.
3 times tables.
6 times tables.
Lesson Practice Target Ball Game
How well do you KNOW your 2 times table ?
Support Play (incorporating runs on the ball and off the ball)
Presentation transcript:

Game Controller Lesson Five

Old Algorithm When the red light reaches the Ball Set CurrentPosition to 0 Turn the CurrentPosition light red Set score to 0 Display the score on the micro:bit Set Ball to 0 Turn the Ball light blue Forever: When the red light reaches the Ball Change the score by 1 Set Ball to a random number between 1 and 64 Show the light

New Algorithm  On start Set CurrentPosition to 0 Set CurrentPositionX to 0 Set CurrentPositionY to 0 Turn the CurrentPosition light red Turn the CurrentPositionX CurrentPositionY light red Set score to 0 Display the score on the micro:bit Set Ball to 0 Turn the Ball light blue Set BallX to 1 Set BallY to 7 Turn the BallX BallY light blue Forever: When the red light reaches the Ball IF the CurrentPositionX = BallX AND CurrentPositionY = BallY THEN Change the score by 1 Set Ball to a random number between 1 and 64 Set BallX to a random number between 0 and 7 Set BallY to a random number between 0 and 7 Show the lights END IF  On start

AND Truth Table 1 0 AND 0 is 0 0 AND 1 is 0 1 AND 0 is 0 1 1 0 AND 0 is 0 0 AND 1 is 0 1 AND 0 is 0 1 1 AND 1 is 1

OR Truth Table 1 0 OR 0 is 0 1 0 OR 1 is 1 1 1 OR 0 is 1 1 1 OR 1 is 1