Reset of class Move
This commit is contained in:
parent
325fddc3a6
commit
e6633701ff
|
|
@ -1,18 +1,10 @@
|
||||||
package backend;
|
package backend;
|
||||||
|
|
||||||
public class Move {
|
public class Move {
|
||||||
/*
|
|
||||||
* castling if never move king and rook
|
|
||||||
* no piece between rook and king
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//En passant method
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package backend;
|
package backend;
|
||||||
|
|
||||||
public class PieceCreation {
|
public class PieceCreation {
|
||||||
public static Piece createPiece(int x, int y, PieceType type, boolean isWhite) {
|
public Piece createPiece(int x, int y, PieceType type, boolean isWhite) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case Pawn: return new Pawn(x, y, isWhite);
|
case Pawn: return new Pawn(x, y, isWhite);
|
||||||
case Rook: return new Rook(x, y, isWhite);
|
case Rook: return new Rook(x, y, isWhite);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue