I have developed half of a chess console application using eclipse software. I need help in implementing checkmate and stalemate. I want to reduce the code redundancy and make it well designed application.
Chess board is displayed using grid of 8x8 on the console of eclipse. It has classes like Chess, Piece, King, Queen, Knight, Bishop, Rook and Pawn.
Input is taken in the form of (current_column_of_piece)(current_row_of_piece)-(move_to_column)(move_to_row).
Check for validity of input and locations.
Implies the movement rules on each piece.