A fully working version of the game.

Works with XBoard only (not eboard).

The program plays the first legal move.
This commit is contained in:
2006-01-17 15:18:53 +00:00
parent 42e56fde4f
commit dbfd428710
6 changed files with 356 additions and 139 deletions

View File

@ -300,7 +300,7 @@ public class Rules {
* You need to call legalMovesFromSquare before calling this function.
* @return ArrayList<Move>
*/
public ArrayList<Move> getLegalMovesNonCapture() {
public static ArrayList<Move> getLegalMovesNonCapture() {
return legalMovesNonCapture;
}
@ -310,7 +310,7 @@ public class Rules {
* You need to call legalMovesFromSquare before calling this function.
* @return ArrayList<Move>
*/
public ArrayList<Move> getLegalMovesCapture() {
public static ArrayList<Move> getLegalMovesCapture() {
return legalMovesCapture;
}