public Boolean sameTeam(Pieces piece1, Pieces piece2) { return(piece1.getTeam() == piece2.getTeam()); }
public Boolean isOppositeTeam(Pieces piece1, Pieces piece2) { return((piece1.getTeam() == Team.BLACK && piece2.getTeam() == Team.WHITE) || (piece1.getTeam() == Team.WHITE && piece2.getTeam() == Team.BLACK)); }
public bool isTeamsTurn(Pieces piece) { return(piece.getTeam() != Team.NONE && piece.getTeam() != lastTeam); }