Skip to content

Commit

Permalink
fixing typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmp33 committed Aug 18, 2021
1 parent 103db72 commit e2f31d0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file modified out/artifacts/la_brisca_cli_jar/la-brisca-cli.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/catalan/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public int howManyLeftToTake() {

// print game's author
public void printAuthor() {
System.out.println("El joc de la Brisca per entorn de comandes - per @ericmp33 amb <3, juny 2021.");
System.out.println("El joc de la Brisca per entorn de comandes - @ericmp33, juny 2021.");
}

// validate the play and set who wins it and collects play's cards
Expand Down
4 changes: 2 additions & 2 deletions src/catalan/entities/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ void changeLastCard() {
newLatest.setTaken(false);
newLatest.setWonBy(null);

System.out.println("El jugador " + name + " ha canviat l'última carta");
System.out.println("\n[!] El jugador " + name + " ha canviat l'última carta");
}
}

// returns if player can change latest card
boolean canChangeLastCard() {
// true if player has 7 of trump and its value is less than latest and round is less than 21
// true if player has 7 of trump, its value is less than latest and round is less than 21
return has7Trump() && sevenTrump().getValue() < game.latestCard().getValue() && game.getRound() < 21;
}

Expand Down
2 changes: 1 addition & 1 deletion src/com/labrisca/entities/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void changeLastCard() {

// returns if player can change the latest card
boolean canChangeLastCard() {
// true if player has 7 of trump and its value is less than latest and round is less than 21
// true if player has 7 of trump, its value is less than latest and round is less than 21
return has7Trump() && sevenTrump().getValue() < game.latestCard().getValue() && game.getRound() < 21;
}

Expand Down

0 comments on commit e2f31d0

Please sign in to comment.