Hello, I would like to explore Squeak but am unable to do even the simplest thing: running a program. I have spent literally hours trying to figure this out, browsing on the web and just playing with the application but I don't know how to make Chess.st run graphically so I can play the game. I've looked at the code and all but still don't understand how to make it run. Could you help me please?
Daniel Lewis
El 8/7/08 5:10 PM, "Daniel Lewis" lewisdaniel@gmail.com escribió:
Hello, I would like to explore Squeak but am unable to do even the simplest thing: running a program. I have spent literally hours trying to figure this out, browsing on the web and just playing with the application but I don't know how to make Chess.st run graphically so I can play the game. I've looked at the code and all but still don't understand how to make it run. Could you help me please?
Daniel Lewis
Chess and many others games is part of FunSqueak 7, where you have a glimpse of different things from past and present in a ready to run image. On Objects Flaps you found a morph . Drag to World and start to play :=)
Edgar
I am a noob, so handle with care. You got a file named Chess.st? So maybe look for 'how do I load a .st file in smalltalk?' Looking in the Squeak FAQ gave me this:
http://wiki.squeak.org/squeak/1105
Now that does tell me something about what a .st file is. However it doesn't tell me how to load such a piece of code. Searching further got me to this page:
http://coweb.cc.gatech.edu/cs2340/3667
He tells me to just 'do': FileStream fileIn: 'C:\foo.st'
( If you don't know how to 'do' something, you should probably postpone your chess adventure and read the Squeak by Example Book. Probably everyone highly recomends it. )
Now you need to find a Class that you could call the 'main entry point' for the Chess program you are trying to run. Open the Class browser and search for "Chess". You could also try something as:
Chess new openInWorld (which is kind of a Pattern I've seen through all Squeak UI apps.)
Hope that helps a little. Don't give up.
Felix
Try this: 1. Left click on the Squeak Desktop. You should get the "World" menu 2. Select "open...", then "SqueakMap Package Loader." It may ask you if you want to update the cache from the network or something like that. Say yes if it does... 3. Find "Chess" in the list of packages. Right click, and choose "install." 4. Open a workspace by getting the World menu again (step 1) and selecting "open..." again, and then "workspace" 5. Type ChessMorph new openInWorld. 6. With the cursor on the line you typed, Ctrl-D in Windows, I think Alt-D on a Mac. Or, highlight the line, right click, and select "do it (d) 7. A chess board should open. You're on your own; I have never played!
Hope this helps,
Rob
On Thu, Aug 7, 2008 at 4:51 PM, Felix Dorner felix_do@web.de wrote:
I am a noob, so handle with care. You got a file named Chess.st? So maybe look for 'how do I load a .st file in smalltalk?' Looking in the Squeak FAQ gave me this:
http://wiki.squeak.org/squeak/1105
Now that does tell me something about what a .st file is. However it doesn't tell me how to load such a piece of code. Searching further got me to this page:
http://coweb.cc.gatech.edu/cs2340/3667
He tells me to just 'do': FileStream fileIn: 'C:\foo.st'
( If you don't know how to 'do' something, you should probably postpone your chess adventure and read the Squeak by Example Book. Probably everyone highly recomends it. )
Now you need to find a Class that you could call the 'main entry point' for the Chess program you are trying to run. Open the Class browser and search for "Chess". You could also try something as:
Chess new openInWorld (which is kind of a Pattern I've seen through all Squeak UI apps.)
Hope that helps a little. Don't give up.
Felix
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
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
beginners@lists.squeakfoundation.org