This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-03-31 03:19:32

Harryyyyyyyyyy
New Scratcher
Registered: 2011-03-31
Posts: 4

School Assignment

Can somebody please help me -- Develop a program that simulates the game of Two-Up. In this game, a player enters either “Heads” or “Tails” before the program simulates the tossing of two coins. If the player enters “Heads” and both coins come up Heads, then the program announces that the player won and 10 points are added to a score that is displayed. Similarly, if the player enters “Tails” and both coins come up Tails then 10 points are added to their score. The player loses 10 points if they guess incorrectly or if one coin displays “Heads” and the other coin displays “Tails”.-- Im new to scratch and i wasnt sure on how to do this.. please help!

thanks guyss

Offline

 

#2 2011-03-31 08:09:38

Shadowsonics
Scratcher
Registered: 2010-12-05
Posts: 1000+

Re: School Assignment

looks like you just joined. I joined for a science project, then got addicted for fun.  smile  So... did you download Scratch yet/ It's at the homepage, if you're logged out. That's the first step. Then, try some tutorials or ask around. Use scripts and sprites to make the coins. I'm in a hurry, so hope that was nuff info!


http://i.imgur.com/cIxkl.jpg

Offline

 

#3 2011-03-31 09:00:36

silvershine
Scratcher
Registered: 2010-11-21
Posts: 500+

Re: School Assignment

I'll post an answer soon, I have to leave for school!

Offline

 

#4 2011-04-01 10:13:14

silvershine
Scratcher
Registered: 2010-11-21
Posts: 500+

Re: School Assignment

OK, heres a working script for your game.
http://img217.imageshack.us/img217/7735/coinscripts.gif


Hope that helps!

Last edited by silvershine (2011-04-18 21:33:49)

Offline

 

#5 2011-04-03 23:19:16

Harryyyyyyyyyy
New Scratcher
Registered: 2011-03-31
Posts: 4

Re: School Assignment

Thank U Guys Sooooo Much!! Holy Jeesus Thankyouthankyouthankyou!!

Offline

 

#6 2011-04-03 23:54:47

Harryyyyyyyyyy
New Scratcher
Registered: 2011-03-31
Posts: 4

Re: School Assignment

how do i get the "Red" commands?? i cant find them

Offline

 

#7 2011-04-04 00:02:10

Harryyyyyyyyyy
New Scratcher
Registered: 2011-03-31
Posts: 4

Re: School Assignment

nvm i got it

Offline

 

Board footer