On 4/9/06, Ken Tilton kentilton@gmail.com wrote:
it is pretty clear to me as an old Cells hand. I am toast right now, but I'll send some comments tomorrow. One Q: where does game-shape-data get called, in some imperative logic responding to events, that detects that a shape has been placed?
In tiles-panel.lisp, look for gfw:event-mouse-up. Basically if the location of the mouse up occurs within the same tile shape as the mouse down that started the selection, then the list of points comprising that shape become the input data that tickles the game model. The internal representation of the board gets modified accordingly (the selected shape is removed and points are awarded), then the scoreboard and tile panels are told to redraw themselves via observers on the score and tiles slots.
Thanks for taking a look.
-- Jack Unrue