Closed GoogleCodeExporter closed 9 years ago
Original comment by mattgatto
on 3 Apr 2011 at 9:20
Looks like it loads the game using 'fen'.
This means than board.ply can be much larger than len(board.history).
Original comment by lobais
on 4 Apr 2011 at 10:30
Good catch.
LBoard's applyFen() initializes:
self.history = [None]*movenumber
We do this to store the game's ply-count as len(board.history) (no other
reason).
I'm not a huge fan, but it's OK. I'll fix my own code and correct LBoard.py's
comments about what history contains.
Original comment by Uncombed...@gmail.com
on 4 Apr 2011 at 9:59
Fixed in b68f1581e363
(I tried playing on from a game saved as FEN to test.)
Original comment by Uncombed...@gmail.com
on 4 Apr 2011 at 10:13
Ah right. That's how it is.
Yup, it isn't too nice a solution. But on the other hand, I don't think the
obvious alternative is much better.
Good thinking putting that comment in the top.
Original comment by lobais
on 5 Apr 2011 at 8:19
Original issue reported on code.google.com by
mattgatto
on 3 Apr 2011 at 9:19Attachments: