[olpc-help] CHESS GAME FOUND ON XO
Yoshiki Ohshima
yoshiki at vpri.org
Wed Jan 2 21:12:57 EST 2008
> Cool! Is this a native Squeak chess engine, or an interface controlling a C engine like gnuchess or TSCP?
>
> How do I view the Squeak source to the chessboard?
It is a native Squeak chess engine. To see and edit the code, hit
Alt-, (hold Alt key and hit comma key), choose "open...", "browser
(b)". In the browser, you scroll down the vertical list in the top
left pane down about 80% and choose "Morphic-Games-Chess" (or click on
the menu button at the top of vertical scroll bar for the first pane,
choose "find class... (f)", type "chess" and enter, and choose
something like ChessBoard.
You select a class in the second pane, and choose a method in the
fourth pane and the code for the method is shown in the bottom pane.
Not only seeing, you can edit it.
The nice thing about Squeak is that you can change the behavior of a
running system. While you're playing chess, you can edit a methods
of, for example ChessPlayerAI, and you can just the algorithm of AI
while the game is going.
See also http://wiki.laptop.org/go/Smalltalk_Development_on_XO for
more information.
-- Yoshiki
More information about the community-support
mailing list