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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user