promote not that uggly
This commit is contained in:
@@ -86,8 +86,8 @@ public class PermissiveRuleChecker implements PieceVisitor<Boolean> {
|
||||
}
|
||||
|
||||
// Allowing small diagonal moves
|
||||
if (directionIndexOffset == Direction.FrontLeft.getIndexOffset()
|
||||
|| directionIndexOffset == Direction.FrontRight.getIndexOffset()) {
|
||||
if (directionIndexOffset * pawn.multiplier() == Direction.FrontLeft.getIndexOffset()
|
||||
|| directionIndexOffset * pawn.multiplier() == Direction.FrontRight.getIndexOffset()) {
|
||||
return distance == 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user