Hint for pawns

There are two ways that you could approach turning a pawn into a queen. One would be to have the pawn change its behavior, displaying a "Q" and allowing the same moves as a queen. Another approach would be to simply replace the pawn on the board with a newly created queen. For that option, you might want ChessBoard's method replacePiece().


Cary Gray
Last modified: Tue Mar 4 13:50:59 CST 2014