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

#1 2009-10-09 12:32:39

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Math game question

I'm making a math game for myself to improve on facts. When I was working on the division section I noticed that I need some help. I want the facts to be like 10/2 = 5 or 8/4 = 2, NOT 9/4 = 2.25. Do you get what I mean? Take a look at the script and reply if you can help.  wink  Thanks!

My division script:
http://i34.tinypic.com/107lxg8.gif

Last edited by coka (2009-10-09 12:37:40)


http://i42.tinypic.com/2rot8c2.png

Offline

 

#2 2009-10-09 12:36:37

steppenwulf
Scratcher
Registered: 2009-07-23
Posts: 1000+

Re: Math game question

You could just set all the numbers in set 2 to all even numbers.


I'm graduating HS this April and going to college in the Fall.

Offline

 

#3 2009-10-09 12:41:02

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Math game question

steppenwulf wrote:

You could just set all the numbers in set 2 to all even numbers.

Yes, I could, but I still want to get facts in like 9/3 = 3... Thanks anyway...  hmm


http://i42.tinypic.com/2rot8c2.png

Offline

 

#4 2009-10-09 15:26:09

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Math game question

Try this. I changed the variables to num1 and num2 just to make it easier for you to read. (It doesn't actually matter)

forever{
set num2 to (pick random (1) to (10))
set num1 to (pick random (num2) to (10))
if<((num1) mod (num2)) = 0>{
ask " " and wait
if<(answer)=(num1/num2)>{
change Correct by 1
end if}
end if}
end forever}

Hope this helps!


http://i48.tinypic.com/2z5pqad.png

Offline

 

#5 2009-10-09 15:39:08

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Math game question

scmb1 wrote:

Try this. I changed the variables to num1 and num2 just to make it easier for you to read. (It doesn't actually matter)

forever{
set num2 to (pick random (1) to (10))
set num1 to (pick random (num2) to (10))
if<((num1) mod (num2)) = 0>{
ask " " and wait
if<(answer)=(num1/num2)>{
change Correct by 1
end if}
end if}
end forever}

Hope this helps!

I'll try it when I have time! I hope it works! Thanks!  wink


http://i42.tinypic.com/2rot8c2.png

Offline

 

#6 2009-10-09 16:20:39

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Math game question

coka wrote:

scmb1 wrote:

Try this. I changed the variables to num1 and num2 just to make it easier for you to read. (It doesn't actually matter)

forever{
set num2 to (pick random (1) to (10))
set num1 to (pick random (num2) to (10))
if<((num1) mod (num2)) = 0>{
ask " " and wait
if<(answer)=(num1/num2)>{
change Correct by 1
end if}
end if}
end forever}

Hope this helps!

I'll try it when I have time! I hope it works! Thanks!  wink

Hey thanks a lot it worked!  big_smile


http://i42.tinypic.com/2rot8c2.png

Offline

 

#7 2009-10-09 16:46:33

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Math game question

coka wrote:

coka wrote:

scmb1 wrote:

Try this. I changed the variables to num1 and num2 just to make it easier for you to read. (It doesn't actually matter)

forever{
set num2 to (pick random (1) to (10))
set num1 to (pick random (num2) to (10))
if<((num1) mod (num2)) = 0>{
ask " " and wait
if<(answer)=(num1/num2)>{
change Correct by 1
end if}
end if}
end forever}

Hope this helps!

I'll try it when I have time! I hope it works! Thanks!  wink

Hey thanks a lot it worked!  big_smile

No Problem!


http://i48.tinypic.com/2z5pqad.png

Offline

 

Board footer