Rock Paper Scissor Game on Scratch
Rock Paper and Scissor is a popular game. Rock, paper scissors is played between two people, both of them choosing one out of the three options- Rock, Paper, Scissor. Then, according to certain rules, one of the two is declared the winner.
Before going to the coding part, analyze and break down the game.
For this game we need Five Sprites – Rock, Paper, Scissor, Computer, and Referee.
Create a variable called ‘Player Choice’, this will hold the player’s choice – Rock, Paper, Scissor.
Import the three sprite named – Rock, Paper and Scissor from the library. Program these three sprite, so that , when this sprite is clicked, set the Player’s choice to 1, 2 and 3 accordingly.
Player Choice 1 means ‘Rock’, Player Choice 2 means ‘Scissor’ and Player Choice 3 means ‘paper’.
After player made his choice, broadcast message ‘Choice Made’ to the computer.
First import the ‘Computer sprite’ from Library. As the Computer is making its choices randomly in this game, add three costume to it, name it accordingly- Rock, paper Scissor.
Create a variable called ‘Computer Choice’, this will hold the computer’s choice – Rock, Paper, Scissor.
When it receive the message ‘Choice Made’, set the computer responds with a random choice – 1, 2, 3.
Computer Choice 1 means ‘Rock’, Computer Choice 2 means ‘Scissor’ and Computer Choice 3 means ‘paper’.
Then, broadcast the message ‘Check For Winner’ to the Referee.
It makes the decision as to whether the round is a Tie, or Player win or Computer win.
We also need to keep the count of points scored by both – Player and Computer. Create 2 variables called Player Score and Computer Score. Who won?. Program the rock, paper, scissors game so that, who make it a best of 3 or best of 5 games, win the game!
After one character (Player or Computer) gets 5 points, declare the winner and stop the game. The scores should also be zeroed out so the game is ready for the next round.
To download the project files of the Rock Paper and Scissor Scratch Game Click here. Also go through the another interesting scratch 3.0 project of Dodge the ball scratch game and How To Make Brick Breaker Game On Scratch here.
Here's a step-by-step tutorial to create a platformer game similar to Super Mario in Scratch:…
Here's a step-by-step tutorial to create a Whack-a-Mole game in Scratch with code snippets: 1.…
About Game: In Spot The Difference Game, the player has to spot the difference between…
In this scratch tutorial, you will create a memory game in which you have to…
In this article, we are going to teach you how to program your owncustomized version…
About Duck Hunt Game: This is a remake of the classic video game Duck Hunt.…
This website uses cookies.
View Comments
Im thankful for the article. Much thanks again. Keep writing. Violet Gregorius Pfeifer
You completed certain nice points there. I did a search on the subject and found nearly all folks will go along with with your blog. Sybilla Matt Aribold
I enjoy the efforts you have put in this, appreciate it for all the great articles. Ingaborg Nikolaos Batty
I pay a quick visit each day some web pages and information sites to read posts, however this website presents feature based posts. Wynne Kane Narton
Magnificent web site. A lot of helpful info here. I'm sending it to
some buddies ans also sharing in delicious. And obviously, thank you on your effort!
Please let me know if you're looking for a author for your site. You have some really great posts and I think I would be a good asset. If you ever want to take some of the load off, I'd really like to write some articles for your blog in exchange for a link back to mine. Please blast me an email if interested. Cheers!
hello there and thank you for your information ? I?ve definitely picked up anything new from right here. I did however expertise some technical issues using this web site, since I experienced to reload the site a lot of times previous to I could get it to load correctly. I had been wondering if your web hosting is OK? Not that I am complaining, but sluggish loading instances times will very frequently affect your placement in google and could damage your quality score if advertising and marketing with Adwords. Anyway I?m adding this RSS to my email and can look out for much more of your respective interesting content. Ensure that you update this again very soon..
Your response to my comment on the blog was exactly what I needed to hear. Thank you for your guidance.