Exploring Computer Science Lesson 4-11

Slides:



Advertisements
Similar presentations
Eggs, Chickens, and Dinosaurs
Advertisements

Statistics and Probability
` Click the doors to go back to Club Penguin!
FAFSA/CALIFORNIA DREAM ACT APPLICATION SUPPORT SESSION 1.
Tonight’s JavaScript Topics 1 Conditional Statements: if and switch The Array Object Looping Statements: for, while and do-while.
Use logic to teach the computer how to play a game
Welcome to ICS2O!. Who is Mr.Kurz? Studied Computer Science at Ottawa University Started teaching in KL in 2005 Enjoy fishing, Hunting and being outside.
Scratch Internet- Open Chrome hit “Create” 1.
My Blastoff Nutrition Game [Insert Instructor’s Name] [Insert Date]
Z. Z Scissors Paper Stone  Scissors beats paper (cuts it)  Paper beats rock (wraps it)  Rock beats scissors (blunts it)  Showing the same is a draw.
Multiplication Level 3 (facts 0 - 9) Read These Instructions:  Try to get the answer before the computer puts it on the screen.  Do not click on your.
Rock, Paper, Scissors A Probability Experiment.
SCIE_2_A_Les17HabitatsDay1_MAT 2014 CFISD 2 nd Grade Science Lesson 17: Organisms and Environments – Land and Freshwater Day 1.
Finale NotePad EXTRA CREDIT Welcome! In this lesson, you will learn to Download and open a music software publishing program called Finale Notepad.
Web Site Evaluation Exploring Computer Science – Lesson 1-3.
FAFSA STEP-BY-STEP 1. STUDENTS WILL LEARN BASIC INFORMATION ABOUT THE FAFSA INCLUDING KEY DEADLINES, MATERIALS NEEDED, AND THE SIGNIFICANCE OF BOTH APPLICATIONS.
Learning Difficulties in Computer Programming By Dr SC Li.
Multiplication Level 1 (Facts 0-2) Read These Instructions:  Try to get the answer before the computer puts it on the screen.  Do not click on your.
Multiplication Level 2 (facts 0-2, 5, 9) Read These Instructions:  Try to get the answer before the computer puts it on the screen.  Do not click on.
Multiplication Level Read These instructions:  Try to get the answer before the computer puts it on the screen.  Do not click on your mouse,
Balanced Unbalanced The Goal “Perfectly Imbalanced”
Do Now: March 28th A box contains a large number of plastic balls. Some of the balls are red and the rest are green. One ball will be selected at random.
Randomness Exploring Computer Science Lesson 4-10 – Part 2.
Design of Rock-Paper-Scissors end Print instructions Play game Ask user If (s)he wants to play again Play again? Y Print stats: wins, losses and ties start.
Build Your Own Game Now! HIDDEN OBJECT KIDS ADVENTURE GAME SOURCE CODE SELLMYSOURCECODE.
Best 20 jobs jobs sites.
Alice Final Project Web Design. Alice Final Project You have a choice of two scenarios: 1. A game of some sort. You must devise a score-keeping mechanism.
13 Lesson 1 Let Me Count the Ways Fundamental Counting Principle, Permutations & Combinations CP Probability and Statistics FA 2014 S-ID.1S-CP.3S-CP.5.
How to think about strategic games
Lego Mindstorm Robot Educator Tutorials
Lesson 1-4 AP Computer Science Principles
MATHS 24 MATHS MATHS 24 MATHS 24 GAME RULES:
Let's go to a Cafe! By the end of this lesson you will be able to:
Exploring Computer Science Lesson 4-13
Programming Final Project
Exploring Computer Science Lesson 4-14
Poster Directions The purpose of the poster is to showcase your favorite game you wrote this week. Choose your favorite game. Use blank notebook paper.
Exploring Computer Science Lesson 4-10 – Part 1
Programming Final Project
Strategies for Problem Solving
The Maker.
Wallkill HS P.E. Basketball
Broadcasting Exploring Computer Science Lesson 4-6.
Exploring Computer Science Lesson 4-14
VISUAL BASIC FINAL PROGRAMMING PROJECT
Lego Mindstorm Robot Educator Tutorials
Lego Mindstorm Robot Educator Tutorials
VISUAL BASIC FINAL PROGRAMMING PROJECT GRADE SHEET
Programming Final Project
Pairs/Threes 3 mins… who’s the rock, paper and scissors champion?
Partner Battle.
Broadcasting Exploring Computer Science Lesson 4-6.
And and or…and RANDOMNESS
Exploring Computer Science Lesson 4-13
Conditionals Exploring Computer Science Lesson 4-9.
Break Out Activity Teams of 2 or 3
Programming Final Project
Big problem  small steps
Pair work – Do you want to change seats??
The first number is posted telling what random number was selected, I did this for testing purposes, in the real thing it would not be there. Since the.
Strike it out.
Exploring Computer Science Lesson 4-8
Exploring Computer Science Lesson 4-12
Exploring Computer Science Lesson 4-10 – Part 2
Exploring Computer Science Lesson 4-14
Exploring Computer Science Lesson 4-13
Pseudo-Code Conditional Branches
Iteration – While Loops
Exploring Computer Science Lesson 4-10 – Part 1
Presentation transcript:

Exploring Computer Science Lesson 4-11 Rock Paper Scissors Exploring Computer Science Lesson 4-11

Objectives The students will be able to: Apply knowledge of conditionals to complete a Rock Paper Scissors program.

Rules Rock beats Scissors Scissors beats Paper Paper beats Rock Download the beginning of the program from the web site (rps starter.sb)

Let’s Look at the Beginning of the Program There are 5 variables: ROCK, PAPER, SCISSORS never change computer and player reflect their choices They are hidden during the game

Player1

Computer

How many combinations are there?? Computer’s Choice Player’s Choice Winner Rock Tie Paper Player Scissors Computer

I’ll help you get started!

Finish Programming the Game! Your job is to finish programming the game. There are many possible ways to do that. If you want extra credit, you will: Set a limit on the number of attempts the user has to beat the computer…or vice versa. Change the instructions to inform the user how many attempts they have to beat the computer. Present a backdrop or scene change to say who has won and what the final score is once the number of attempts has been reached. Be careful! There are three ‘winning’ screens: the user wins, the computer wins AND there’s a tie (nobody wins)!