Good idea. I'm adding and deleting from the top of the holder so the last player could be dot for example and when that is the first player in the holder it's empty.
Karl
Alan Kay wrote:
It might be a little more intuitive if you put in a special player that signifies "empty" -- this was often used in the sixties for stacks, especially in mathematical explanations of stacks, etc.
Cheers,
Alan
At 8:45 PM +0200 9/3/03, Karl Ramberg wrote:
Bert Freudenberg wrote:
Ned Konz wrote:
On Wednesday 03 September 2003 01:07 am, Karl Ramberg wrote:
Oh, a quick update: Here is the project with a little documentation. http://www.squeakland.org/project.jsp?http://squeakland.org:8080/su per/uploads/maze%20constructor.007.pr
This is the version you want to use. Look at the cool garbage collecting :-)
Fun!
However, it only backtracks by one square, so it gets stuck easily. In script3 you set the cursor to 1 and then increase it; what you probably want to do is move the resetting to 1 somewhere else, or just throw away the history after backtracking.
No, what is missing is to move the first stack item to the trash holder.
Right Most stuff should be fixed in this version: http://www.squeakland.org/project.jsp?http://squeakland.org:8080/super/uploa...
The cursor increase is just to test if the stack is empty - there seems to be no other way to test the size of a holder.
Right again.
Karl _______________________________________________ Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
--