Testing chess game
- by mousey
There is a software for chess game and we need to test the following method:
boolean canMoveTo(int x, int y)
x and y are the coordinates of the chess board and it returns true/false whether the piece can move to that position or not. We need to test this method for a pawn piece and you can set up the board any way you like prior to running a test case. Source code is not provided