Add isDraw() method to ChessEngine
parent
5a4b3ff63e
commit
c7a3c9918f
|
|
@ -78,4 +78,9 @@ public class ChessEngine {
|
||||||
public boolean isStalemate() {
|
public boolean isStalemate() {
|
||||||
return board.isStaleMate();
|
return board.isStaleMate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isDraw() {
|
||||||
|
return board.isDraw();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue