Ying,
I tried using DemoBoard and moving pieces on top of one and other, moving other pieces, etc. All of this action was rejected by the GUI. It said illegal move, it relies soley on the Board class to determine legality of moves.
For reference in the future, in case you are wondering whether or not apparent bugs in the GUI are caused by it or your board, use DemoBoard as a tester. Do the suspicious things in the GUI for DemoBoard and see what happens.
Please do not assume also that your board works and that all problems are related to the GUI. I know I said there were bugs, but it isn't exactly terrible, it pretty much works. Always be suspicious of your code first.
Mike |