2010/7/22 Daniel Kersten <[email protected]>: > I believe make_binary works now. In my tests it was shifted left one bit, so > I adjusted it by specifying start=1 in the enumerate (so the range is now > 2**63 ... 2**0, instead of 2**64 ... 2**1).
Yup, it's working fine now. I've started another branch, called visual-data, e.g.: http://paste.pocoo.org/show/241181/ This way it's easier to read. I also finished the code generating all the rotations and all the positions. If you call the MatcherData() method of the AllTheWays class, you'll get the data ready for use for any solution seeking algorithm. Victor, I couldn't really use your piece moving code, because it wasn't generic enough to extend it to all 6 directions. Instead, I've hard-coded a move in one directions and extended it to all 6 directions by rotating the piece pre- and post-move. The Mover class is now in the pieces.py file. -- You received this message because you are subscribed to the Google Groups "Python Ireland" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pythonireland?hl=en.
