The Gamesman project was a great project assignment
that helped us to learn a lot about Scheme. In our Snakes
game one of the nifty features we added, besides the compulsory
rules was mouse interaction, involved dragging the snake (detecting
where the mouse buttons were pressed, the status of the button
and the position where the button was released) besides the
normal clicking. In the process of implementing the above,
we took advantage of the OO based MrEd library that comes
with DrScheme.
The biggest challenge for us was to implement a windows
event semaphore with MrEd in order to integrate the functional
programming paradigm of the gamesman library with the event
based programming model of a windows environment like X, Mac
or Windows. The seamless integration of the two programming
models that the semaphore provided helped us to implement
the event handlers within windows classes while making minimal
changes to the Gamesman library.
Deep Debroy
|