[Newbies] How do I run Chess?

K. K. Subramaniam subbukk at gmail.com
Fri Aug 8 03:50:04 UTC 2008


On Friday 08 Aug 2008 1:40:55 am Daniel Lewis wrote:
> Hello, I would like to explore Squeak but am unable to do even the simplest
> thing: running a program.
In Squeak, you don't run 'programs' but create and delete 'objects'. If you 
want to play chess, open Object Catalog (ALT+O) and look for Chess object 
(either under C in alphabetic or under Games) and then drag a copy of game 
template to the world area.

The closest idea to 'running a program' is sending a message to a class to 
create a new instance. In this example, if someone has created a collection 
of classes for a chess game, find the main class (say Chess) and look for 
methods in the 'instance creation' category (if no method is found, then 
use 'new') and then "do" the sentence:
	Chess new openInHand

BTW, when you post questions please include the version of your Squeak.

HTH .. Subbu


More information about the Beginners mailing list