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

#1 2007-10-23 21:24:53

fbboi999
Scratcher
Registered: 2007-05-17
Posts: 100+

Rock Paper Scissors

please look at this project... it has a bug with the scoreboard and I need some help.

I'll also check the FAQ but look at my project anyway

http://scratch.mit.edu/projects/fbboi999/47441


Check out my cool projects!
“Know thy self, know thy enemy. A thousand battles, a thousand victories.”

Offline

 

#2 2007-10-24 16:50:25

andresmh
Scratch Team at MIT
Registered: 2007-03-05
Posts: 1000+

Re: Rock Paper Scissors

what is the specific bug? I am moving your question to the troubleshooting forum since it might be more likely to get people to help you there .


Andres Monroy-Hernandez | Scratch Team at the MIT Media Lab
on identi.ca and  twitter

Offline

 

#3 2007-10-25 18:06:11

fbboi999
Scratcher
Registered: 2007-05-17
Posts: 100+

Re: Rock Paper Scissors

well... sometimes (as far as i know its random, but it may not be, so i'm asking this) if you win then it adds 1 to the wins and ties section, or some other combination of 2 (wins/losses/ties). Obviously, it only needs to add one to one section.

HELP!


Check out my cool projects!
“Know thy self, know thy enemy. A thousand battles, a thousand victories.”

Offline

 

#4 2007-11-06 19:13:58

fbboi999
Scratcher
Registered: 2007-05-17
Posts: 100+

Re: Rock Paper Scissors

does anybody know what i can do to fix it?


Check out my cool projects!
“Know thy self, know thy enemy. A thousand battles, a thousand victories.”

Offline

 

#5 2007-11-17 20:54:41

fbboi999
Scratcher
Registered: 2007-05-17
Posts: 100+

Re: Rock Paper Scissors

??????? help????


Check out my cool projects!
“Know thy self, know thy enemy. A thousand battles, a thousand victories.”

Offline

 

#6 2007-11-18 01:04:17

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Rock Paper Scissors

There may be several problems with your scripts.

The first I saw was that when space key is pressed you could send not just one of "Rock" "Paper" "Scissors", but any number of them from 0 to 3.

You need another variable, say  "cat chooses"
and set it to random 1 to 3.  Then you can test it using the current code.
The problem with the current code is that you generate a *new* random value for each test, when you only one value for each press of the space key.

There may be other bugs, but try fixing this one first.

Offline

 

Board footer