drd@mit.edu wrote:
I think it makes sense the way it's currently implemented. What boardsize does to the board is undefined and I think it makes sense for it to remain undefined.
One might argue for a single board_size command that functions as both, and I would be alright with that but it shouldn't be called "boardsize". It should be something like reset_board with an argument indicating boardsize.
- Don
That doesn't really answer my question. Do you have a logical reason for why it "makes sense" to save piece positions? Have you ever played a game half way, resized the board, then kept playing without clearing the board?
If you have no need to save the pieces on the board, then you shouldn't. Not clearing the board just leads to confusion should you forget to explicitly tell the computer to resize AND clear, then it starts playing with a corrupted board.
Chris