Skip to content

Commit

Permalink
Update BoardPoint.java
Browse files Browse the repository at this point in the history
  • Loading branch information
sloenthran committed May 25, 2019
1 parent c37bdbb commit 04920f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/pl/nogacz/chess/application/BoardPoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public int calculateBoard() {
private int calculatePawn(Coordinates coordinates, PawnClass pawn) {
int point = 1;

if(pawn.getColor().isWhite()) {
if(pawn.getColor().isWhite() && pawn.getPawn() == Pawn.PAWN && coordinates.getY() > 4) {
point++;
} else if(pawn.getColor().isBlack() && pawn.getPawn() == Pawn.PAWN && coordinates.getY() < 4) {
point++;
Expand Down

0 comments on commit 04920f5

Please sign in to comment.