"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote in message >

>And use xrange instead of range.

For small dimensions like 3,4,5, xrange is way overkill and perhaps takes 
both more space and time.  Since dim is a constant for a given puzzle, I 
would set self._range = range(dim) in __init__() and use that to iterate. 
And, as I said in another response, I would not iterate to make a move.

Terry J. Reedy




-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to