Reset of class Move

This commit is contained in:
gabrielshiraishi 2025-04-17 10:24:53 +02:00
parent 325fddc3a6
commit e6633701ff
2 changed files with 3 additions and 11 deletions

View File

@ -1,18 +1,10 @@
package backend;
public class Move {
/*
* castling if never move king and rook
* no piece between rook and king
*
*/
//En passant method
}

View File

@ -1,7 +1,7 @@
package backend;
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) {
case Pawn: return new Pawn(x, y, isWhite);
case Rook: return new Rook(x, y, isWhite);