A1/Solutions/java_project/Piece.java
<reponame>ali-sedaghi/IUST-Compiler-Assignments<gh_stars>0import java.util.Random;
public abstract class Piece
{
    protected String name;
    protected int x;
    protected int y;
    protected boolean[][] flag = new boolean[8][4];

    protected Piece(String name, int x, int y)
    {
        this.name = name;
        this.x = x;
        this.y = y;
    }

    protected abstract void move();
}
