alice-teacher EVENTS vs Return Functions

Elaine Demeter DemeterE at fatherryan.org
Wed Apr 6 16:49:28 EDT 2011


A few of my students redid the "Learning to Program with Alice" exercise of Zeus zapping the philosophers by using multiple event statements instead of using a boolean return function. 

They thought it was "logically" easier to to check for each philosopher (ex: when the mouse is clicked on "SOCRATES") as an event rather than by creating the return function with all of the IF statements. Is one manner was more preferable or efficient than the other?

Elaine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.andrew.cmu.edu/mailman/private/alice-teachers/attachments/20110406/2f3b05a7/attachment.html 


More information about the alice-teachers mailing list