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

#1 2010-12-31 10:41:43

Robot_Maniac
Scratcher
Registered: 2010-11-22
Posts: 56

CPUs

How do you make a CPU on Scratch???


Math Trick of the Week: Choose any three digit number that's one digit is at least 2 less that the tens digit and the tens digit at least 2 less than the hundreds. Then, reverse the digits and subtract. Then, reverse the digits in the answer and add. You should get 1089.

Offline

 

#2 2010-12-31 10:47:07

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: CPUs

Well, it can be difficult or easy depending on what you want it to do.


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#3 2010-12-31 10:48:18

Robot_Maniac
Scratcher
Registered: 2010-11-22
Posts: 56

Re: CPUs

maybe in a ping-pong game you're making but you don't want 2P, you just want 1P and a CPU

I'm thinking you use the [blocks]<pick random(1)to(100)>[/blocks]

Last edited by Robot_Maniac (2010-12-31 10:49:18)


Math Trick of the Week: Choose any three digit number that's one digit is at least 2 less that the tens digit and the tens digit at least 2 less than the hundreds. Then, reverse the digits and subtract. Then, reverse the digits in the answer and add. You should get 1089.

Offline

 

#4 2010-12-31 10:56:11

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: CPUs

Robot_Maniac wrote:

maybe in a ping-pong game you're making but you don't want 2P, you just want 1P and a CPU

I'm thinking you use the [blocks]<pick random(1)to(100)>[/blocks]

Oh ok, if you want it to say, follow the ball, then you can use something simple, like this:
http://i52.tinypic.com/ndkffp.gif


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#5 2010-12-31 10:57:48

Robot_Maniac
Scratcher
Registered: 2010-11-22
Posts: 56

Re: CPUs

Oh! Thanks!


Math Trick of the Week: Choose any three digit number that's one digit is at least 2 less that the tens digit and the tens digit at least 2 less than the hundreds. Then, reverse the digits and subtract. Then, reverse the digits in the answer and add. You should get 1089.

Offline

 

#6 2010-12-31 16:19:14

WeirdF
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: CPUs

There's an article on the Scratch Wiki about this:

Artificial Intelligence


http://i.cr3ation.co.uk/dl/s1/gif/847032b8a331def77529b6a0384db1fe_handfingers.gif

Offline

 

Board footer