[Tutor] Dots-And-Boxes

Gregor Lingl glingl@aon.at
Mon, 3 Jun 2002 03:28:52 +0200


So the method play() (and perhaps already
the method _isSquareMove() should better
return a list of the corners of all the
affected squares?

Can 'any number' be greater than 2? Under
which circumstances?

Gregor

----- Original Message ----- 
From: "Sean 'Shaleh' Perry" <shalehperry@attbi.com>
To: "Gregor Lingl" <glingl@aon.at>
Cc: <tutor@python.org>
Sent: Monday, June 03, 2002 3:17 AM
Subject: Re: [Tutor] Dots-And-Boxes


> 
> P.S.:  There is one point, which is not completely clear to me:
> Danny's algorithm always assigns only one square to the player
> who did the last move, even if his draw completes two squares,
> So in the end the sum of the points may be less than (w-1)*(h-1).
> Is this according to the rules of the game?
> 

no.  If your move boxes in any number of squares you get all of them.