ignorecase all
parent
47e7b160e3
commit
24eafc0b0d
Binary file not shown.
|
@ -1,10 +1,10 @@
|
||||||
2024-04-30 Selim 254
|
2024-04-30 Selim 254
|
||||||
2024-04-30 Enes 127
|
2024-04-30 Enes 127
|
||||||
|
2024-05-05 Daniil 121
|
||||||
|
2024-05-05 Selim 112
|
||||||
2024-04-30 David 82
|
2024-04-30 David 82
|
||||||
2024-04-30 Olaf 72
|
2024-04-30 Olaf 72
|
||||||
___ ___ 0
|
___ ___ 0
|
||||||
___ ___ 0
|
___ ___ 0
|
||||||
___ ___ 0
|
___ ___ 0
|
||||||
___ ___ 0
|
___ ___ 0
|
||||||
___ ___ 0
|
|
||||||
___ ___ 0
|
|
||||||
|
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,10 +1,10 @@
|
||||||
2024-04-30 Selim 254
|
2024-04-30 Selim 254
|
||||||
2024-04-30 Enes 127
|
2024-04-30 Enes 127
|
||||||
|
2024-05-05 Daniil 121
|
||||||
|
2024-05-05 Selim 112
|
||||||
2024-04-30 David 82
|
2024-04-30 David 82
|
||||||
2024-04-30 Olaf 72
|
2024-04-30 Olaf 72
|
||||||
___ ___ 0
|
___ ___ 0
|
||||||
___ ___ 0
|
___ ___ 0
|
||||||
___ ___ 0
|
___ ___ 0
|
||||||
___ ___ 0
|
___ ___ 0
|
||||||
___ ___ 0
|
|
||||||
___ ___ 0
|
|
||||||
|
|
|
|
@ -224,9 +224,9 @@ public class Box {
|
||||||
res.add("Five: " + categoryFive);
|
res.add("Five: " + categoryFive);
|
||||||
if (setCategorySix == null)
|
if (setCategorySix == null)
|
||||||
res.add("Six: " + categorySix);
|
res.add("Six: " + categorySix);
|
||||||
if (setCategorySeven == null && savedGamemode.equals("Special8"))
|
if (setCategorySeven == null && savedGamemode.equalsIgnoreCase("Special8"))
|
||||||
res.add("Seven: " + categorySeven);
|
res.add("Seven: " + categorySeven);
|
||||||
if (setCategoryEight == null && savedGamemode.equals("Special8"))
|
if (setCategoryEight == null && savedGamemode.equalsIgnoreCase("Special8"))
|
||||||
res.add("Eight: " + categoryEight);
|
res.add("Eight: " + categoryEight);
|
||||||
if (setCategoryTripleMatch == null)
|
if (setCategoryTripleMatch == null)
|
||||||
res.add("TripleMatch: " + categoryTripleMatch);
|
res.add("TripleMatch: " + categoryTripleMatch);
|
||||||
|
@ -244,7 +244,7 @@ public class Box {
|
||||||
res.add("Chance: " + categoryChance);
|
res.add("Chance: " + categoryChance);
|
||||||
if (setCategoryStarWarsDay == null)
|
if (setCategoryStarWarsDay == null)
|
||||||
res.add("StarWarsDay: " + categoryStarWarsDay);
|
res.add("StarWarsDay: " + categoryStarWarsDay);
|
||||||
if (setCategoryR2D2 == null && savedGamemode.equals("Special8"))
|
if (setCategoryR2D2 == null && savedGamemode.equalsIgnoreCase("Special8"))
|
||||||
res.add("R2D2: " + categoryR2D2);
|
res.add("R2D2: " + categoryR2D2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -329,7 +329,7 @@ public class Box {
|
||||||
|
|
||||||
public boolean gameOver() {
|
public boolean gameOver() {
|
||||||
|
|
||||||
if (this.savedGamemode.equals("Special8"))
|
if (this.savedGamemode.equalsIgnoreCase("Special8"))
|
||||||
return setCategoryOne != null &&
|
return setCategoryOne != null &&
|
||||||
setCategoryTwo != null &&
|
setCategoryTwo != null &&
|
||||||
setCategoryThree != null &&
|
setCategoryThree != null &&
|
||||||
|
@ -368,7 +368,7 @@ public class Box {
|
||||||
|
|
||||||
public void updateBonus() {
|
public void updateBonus() {
|
||||||
|
|
||||||
if (savedGamemode.equals("Special8")) {
|
if (savedGamemode.equalsIgnoreCase("Special8")) {
|
||||||
|
|
||||||
if (nullCheckInt(setCategoryOne) + nullCheckInt(setCategoryTwo) + nullCheckInt(setCategoryThree)
|
if (nullCheckInt(setCategoryOne) + nullCheckInt(setCategoryTwo) + nullCheckInt(setCategoryThree)
|
||||||
+ nullCheckInt(setCategoryFour)
|
+ nullCheckInt(setCategoryFour)
|
||||||
|
@ -389,7 +389,7 @@ public class Box {
|
||||||
|
|
||||||
public int returnTotalPoints() {
|
public int returnTotalPoints() {
|
||||||
|
|
||||||
if (savedGamemode.equals("Special8"))
|
if (savedGamemode.equalsIgnoreCase("Special8"))
|
||||||
return setCategoryOne + setCategoryTwo + setCategoryThree + setCategoryFour + setCategoryFive
|
return setCategoryOne + setCategoryTwo + setCategoryThree + setCategoryFour + setCategoryFive
|
||||||
+ setCategorySix + setCategorySeven + setCategoryEight + nullCheckInt(bonus)
|
+ setCategorySix + setCategorySeven + setCategoryEight + nullCheckInt(bonus)
|
||||||
+ setCategoryTripleMatch
|
+ setCategoryTripleMatch
|
||||||
|
@ -410,7 +410,7 @@ public class Box {
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
||||||
if (savedGamemode.equals("Special8")) {
|
if (savedGamemode.equalsIgnoreCase("Special8")) {
|
||||||
sb.append("\n--------------------------\n\n");
|
sb.append("\n--------------------------\n\n");
|
||||||
sb.append("One: " + nullCheck(setCategoryOne) + "\n");
|
sb.append("One: " + nullCheck(setCategoryOne) + "\n");
|
||||||
sb.append("Two: " + nullCheck(setCategoryTwo) + "\n");
|
sb.append("Two: " + nullCheck(setCategoryTwo) + "\n");
|
||||||
|
@ -464,7 +464,7 @@ public class Box {
|
||||||
|
|
||||||
public void updateUpperBoxScore() {
|
public void updateUpperBoxScore() {
|
||||||
|
|
||||||
if (savedGamemode.equals("Special8"))
|
if (savedGamemode.equalsIgnoreCase("Special8"))
|
||||||
|
|
||||||
this.upperBoxScore = nullCheckInt(setCategoryOne) + nullCheckInt(setCategoryTwo)
|
this.upperBoxScore = nullCheckInt(setCategoryOne) + nullCheckInt(setCategoryTwo)
|
||||||
+ nullCheckInt(setCategoryThree) + nullCheckInt(setCategoryFour)
|
+ nullCheckInt(setCategoryThree) + nullCheckInt(setCategoryFour)
|
||||||
|
@ -481,7 +481,7 @@ public class Box {
|
||||||
|
|
||||||
public void updateLowerBoxScore() {
|
public void updateLowerBoxScore() {
|
||||||
|
|
||||||
if (savedGamemode.equals("Special8"))
|
if (savedGamemode.equalsIgnoreCase("Special8"))
|
||||||
|
|
||||||
this.lowerBoxScore = nullCheckInt(setCategoryTripleMatch) + nullCheckInt(setCategoryFourOfAKind)
|
this.lowerBoxScore = nullCheckInt(setCategoryTripleMatch) + nullCheckInt(setCategoryFourOfAKind)
|
||||||
+ nullCheckInt(setCategoryFullHouse) + nullCheckInt(setCategorySmallStreet)
|
+ nullCheckInt(setCategoryFullHouse) + nullCheckInt(setCategorySmallStreet)
|
||||||
|
|
|
@ -9,9 +9,9 @@ public class Dice {
|
||||||
|
|
||||||
public Dice(String gamemode) {
|
public Dice(String gamemode) {
|
||||||
this.savedGamemode = gamemode;
|
this.savedGamemode = gamemode;
|
||||||
if (gamemode.equals("Normal"))
|
if (gamemode.equalsIgnoreCase("Normal"))
|
||||||
this.diceNumber = ((int) (Math.random() * 6)) + 1;
|
this.diceNumber = ((int) (Math.random() * 6)) + 1;
|
||||||
else if (gamemode.equals("Special8"))
|
else if (gamemode.equalsIgnoreCase("Special8"))
|
||||||
this.diceNumber = ((int) (Math.random() * 8)) + 1;
|
this.diceNumber = ((int) (Math.random() * 8)) + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,9 +22,9 @@ public class Dice {
|
||||||
|
|
||||||
public void rerollDice() {
|
public void rerollDice() {
|
||||||
|
|
||||||
if (this.savedGamemode.equals("Normal"))
|
if (this.savedGamemode.equalsIgnoreCase("Normal"))
|
||||||
this.diceNumber = ((int) (Math.random() * 6)) + 1;
|
this.diceNumber = ((int) (Math.random() * 6)) + 1;
|
||||||
else if (this.savedGamemode.equals("Special8"))
|
else if (this.savedGamemode.equalsIgnoreCase("Special8"))
|
||||||
this.diceNumber = ((int) (Math.random() * 8)) + 1;
|
this.diceNumber = ((int) (Math.random() * 8)) + 1;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -186,7 +186,7 @@ public class YahtzeeGame {
|
||||||
Scanner scSp = new Scanner(new File("src/csv/highscoresSpecial8.csv"));
|
Scanner scSp = new Scanner(new File("src/csv/highscoresSpecial8.csv"));
|
||||||
String mem[] = new String[3];
|
String mem[] = new String[3];
|
||||||
|
|
||||||
if (savedGamemode.equals("Special8"))
|
if (savedGamemode.equalsIgnoreCase("Special8"))
|
||||||
|
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 0; i < 10; i++) {
|
||||||
|
|
||||||
|
@ -440,7 +440,7 @@ public class YahtzeeGame {
|
||||||
PrintWriter out = new PrintWriter(new FileWriter("src/csv/highscores.csv", false));
|
PrintWriter out = new PrintWriter(new FileWriter("src/csv/highscores.csv", false));
|
||||||
PrintWriter outSp = new PrintWriter(new FileWriter("src/csv/highscoresSpecial8.csv", false));
|
PrintWriter outSp = new PrintWriter(new FileWriter("src/csv/highscoresSpecial8.csv", false));
|
||||||
|
|
||||||
if (savedGamemode.equals("Special8"))
|
if (savedGamemode.equalsIgnoreCase("Special8"))
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 0; i < 10; i++) {
|
||||||
|
|
||||||
outSp.print(highscores[i][0] + " " + highscores[i][1] + " "
|
outSp.print(highscores[i][0] + " " + highscores[i][1] + " "
|
||||||
|
@ -494,7 +494,7 @@ public class YahtzeeGame {
|
||||||
PrintWriter out = new PrintWriter(new FileWriter("src/csv/highscores.csv", false));
|
PrintWriter out = new PrintWriter(new FileWriter("src/csv/highscores.csv", false));
|
||||||
PrintWriter outSp = new PrintWriter(new FileWriter("src/csv/highscoresSpecial8.csv", false));
|
PrintWriter outSp = new PrintWriter(new FileWriter("src/csv/highscoresSpecial8.csv", false));
|
||||||
|
|
||||||
if (savedGamemode.equals("Special8"))
|
if (savedGamemode.equalsIgnoreCase("Special8"))
|
||||||
outSp.print("");
|
outSp.print("");
|
||||||
else
|
else
|
||||||
out.print("");
|
out.print("");
|
||||||
|
|
Loading…
Reference in New Issue