Re: [Puzzler-users] Crossing Polysticks
Brought to you by:
goodger
From: David G. <go...@py...> - 2011-02-20 15:05:21
|
On Thu, Feb 17, 2011 at 22:00, Alexandre Owen Muniz <mu...@xp...> wrote: > I want to override the polystick solver's behavior of disallowing > crossings between pieces. Why? > I wasn't able to figure out how to do that > from the code. The intersections are represented by the columns with labels like "1,2i" (see http://puzzler.sourceforge.net/docs/FAQ.html#how-should-polystick-solution-files-be-interpreted). Removing these columns from the puzzle matrix would do what you want. The code isn't designed to allow this easily though. It might require some refactoring. Perhaps you could override puzzler.coordsys.SquareGrid3DCoordSetMixin.intersections to remove the intersections (it could return an empty set). -- David Goodger <http://python.net/~goodger> |