package dev.kske.chess.piece;
/**
* Project: <strong>Chess</strong><br>
* File: <strong>Bishop.java</strong><br>
* Created: <strong>01.07.2019</strong><br>
* Author: <strong>Kai S. K. Engelbart</strong>
*/
public class Bishop extends Piece {
public Bishop(Color color) {
super(color);
}
@Override
public boolean isValidMove(int xPos, int yPos, int xDest, int yDest) {
return Math.abs(xDest - xPos) == Math.abs(yDest - yPos);
public Type getType() { return Type.BISHOP; }