662663664665666667668669670671672
|| position.get(s.se()) == EPiece.BQ) { return true; } s = square; while (s.sw() != null && position.get(s.sw()) == null) { s = s.sw(); } if (position.get(s.sw()) == EPiece.BB || position.get(s.sw()) == EPiece.BQ) { return true;
663664665666667668669670671672673
return true; } s = square; while (s.sw() != null && position.get(s.sw()) == null) { s = s.sw(); } if (position.get(s.sw()) == EPiece.BB || position.get(s.sw()) == EPiece.BQ) { return true; }
665666667668669670671672673674675
s = square; while (s.sw() != null && position.get(s.sw()) == null) { s = s.sw(); } if (position.get(s.sw()) == EPiece.BB || position.get(s.sw()) == EPiece.BQ) { return true; } s = square;
666667668669670671672673674675676
s = square; while (s.sw() != null && position.get(s.sw()) == null) { s = s.sw(); } if (position.get(s.sw()) == EPiece.BB || position.get(s.sw()) == EPiece.BQ) { return true; } s = square; while (s.n() != null && position.get(s.n()) == null) {
214215216217218219220221222223224
break; } } s = square; while (s.sw() != null) { s = s.sw(); if (position.get(s) == null) { moves.add(new CMove(square, s)); } else if (position.get(s).getSide() != side) { moves.add(new CMove(square, s));
215216217218219220221222223224225
} } s = square; while (s.sw() != null) { s = s.sw(); if (position.get(s) == null) { moves.add(new CMove(square, s)); } else if (position.get(s).getSide() != side) { moves.add(new CMove(square, s)); break;
533534535536537538539540541542543
|| position.get(s.se()) == EPiece.WQ) { return true; } s = square; while (s.sw() != null && position.get(s.sw()) == null) { s = s.sw(); } if (position.get(s.sw()) == EPiece.WB || position.get(s.sw()) == EPiece.WQ) { return true;
534535536537538539540541542543544
return true; } s = square; while (s.sw() != null && position.get(s.sw()) == null) { s = s.sw(); } if (position.get(s.sw()) == EPiece.WB || position.get(s.sw()) == EPiece.WQ) { return true; }