[BUG][FIX][Q] FreeCell-changes.7.cs
Torge Husfeldt
jean-jaques.gelee at gmx.de
Fri Nov 19 09:25:40 UTC 1999
Sorry but my answer went directly to Allen
because I accidentally hit the 'reply to' button
not the 'reply to all' button. I still get confused whith this.
----- Original Message -----
From: A. Stockdale
To: Torge Husfeldt
Sent: Thursday, November 18, 1999 11:23 PM
Subject: Re: [BUG][FIX][Q] FreeCell-changes.7.cs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks for explaining this. I'll try it out first chance I get. You
might want to post it to the list.
I'm not sure if the bug you mention still exists. Can you give a
brief example in the context of a game (see my previous message)?
- -----Original Message-----
From: Torge Husfeldt <jean-jaques.gelee at gmx.de>
To: A. Stockdale <astockdale at computer.org>
Date: November 18, 1999 11:19 AM
Subject: Re: [BUG][FIX][Q] FreeCell-changes.7.cs
A.Stockdale wrote:
I'm trying to learn Squeak/Smalltalk, and working on problems like
this is a great learning tool. Unfortunately, I'm flummoxed by this
one. I'm not really sure how to debug it. I stuck a halt message in
the aboutToBeGrabbed message to see if I could see what was
happening, but I just ended up with way too many notifiers. If you
(or anyone else) can give insight into how to debug a problem like
this, I'd really appreciate it.
I hope this helps:
Object
shiftHalt
"See Halt. Halt is only signalled if the shift key is held down."
Sensor shiftPressed ifTrue:[Halt signal]
Just put shiftHalt instead of halt in the code you want to debug.
Then you only get notifiers as long as you hold down the shift key.
This is IMHO the standard solution for debugging methods that are
frequently revisited. I was really _very_ surprised not to find it in
the
standard image.
By the way is this old bug in freeCell still active?:
If you have one free cell and one free row you can pick up
a stack of three cards and put them into the free row. Allthough
logically you would have been able to only moove a stack of two
cards into the free row. Seems to be the case for many other
combinations.
Regards, Torge
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.1 for non-commercial use <http://www.pgp.com>
iQA/AwUBODR8XwgqUaZcNAnvEQJU2QCgyoVUc36fzVRT6OuhayHlV2Gr8hsAoMVP
qCNE1nydUvvEP21A6Q7TPG5r
=dJKZ
-----END PGP SIGNATURE-----
Regards, Torge
More information about the Squeak-dev
mailing list
|