[Tutor] Dots-And-Boxes

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Sun, 2 Jun 2002 19:21:57 -0700 (PDT)


> """Graphic user interface to Danny Yoo's 'dots and boxes' -program.
> I tried to avoid changes to this program as far as possible.
> So there remain the following changes:
>
> Line  222: Return statement in play() now returns the
>            square_corner instead of 1 (this was the only
>            necessary one (in m opinion)

Ok, that makes perfect sense.  I'll reflect this in my code too.



> Line  255/256: head of for-loop --- this was the easiest way
>            to accomodate text-output to graphical one.
>            ( Bad design decision for the graphics display,
>              may be reverted if there is time ...)
>
> Lines 305-318, 332, 333: A somewhat safer input method for
>            more convenient testing
>
> Lines 354ff: Incorporate graphics mode into __main__()

Very cool!  I'll play around with this tonight.  Thank you!

A muse is murmuring to me that we should put this code up on a source code
repository like Sourceforge.  *grin* Should I do this?