Skip to content

Commit

Permalink
small bug fix oops
Browse files Browse the repository at this point in the history
  • Loading branch information
LimesKey committed Jan 19, 2024
1 parent d21a6b8 commit c271b9a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions TrashSort/src/main/java/trashsort/Levels.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public static Player classicalNormal(Player player, Item[] itemDatabase) {
Item[] itemDatabaseEasy = ItemDb.searchItemDbClassification(TrashClassification.LANDFILL, itemDatabase);
int itemEasyLANDFILL = (int)(Math.random() * (itemDatabaseEasy.length));
System.out.println("Where does " +
itemDatabaseEasy[itemEasyLANDFILL] +" go?");
itemDatabaseEasy[itemEasyLANDFILL].name +" go?");
userAnswer = Tools.matchTrashClassification(scanS.nextLine());
systemAnswer = itemDatabaseEasy[itemEasyLANDFILL].classification;

Expand All @@ -123,7 +123,7 @@ public static Player classicalNormal(Player player, Item[] itemDatabase) {
Item[] itemDatabaseEasy = ItemDb.searchItemDbClassification(TrashClassification.RECYCLE, itemDatabase);
int itemEasyRECYCLING = (int)(Math.random() * (itemDatabaseEasy.length));
System.out.println("Where does " +
itemDatabaseEasy[itemEasyRECYCLING] +" go?");
itemDatabaseEasy[itemEasyRECYCLING].name +" go?");
userAnswer = Tools.matchTrashClassification(scanS.nextLine());
systemAnswer = itemDatabaseEasy[itemEasyRECYCLING].classification;

Expand All @@ -143,7 +143,7 @@ public static Player classicalNormal(Player player, Item[] itemDatabase) {
Item[] itemDatabaseEasy = ItemDb.searchItemDbClassification(TrashClassification.COMPOST, itemDatabase);
int itemEasyCOMPOST = (int)(Math.random() * (itemDatabaseEasy.length));
System.out.println("Where does " +
itemDatabaseEasy[itemEasyCOMPOST] +" go?");
itemDatabaseEasy[itemEasyCOMPOST].name +" go?");
userAnswer = Tools.matchTrashClassification(scanS.nextLine());
systemAnswer = itemDatabaseEasy[itemEasyCOMPOST].classification;

Expand Down Expand Up @@ -184,7 +184,7 @@ public static Player classicalHard(Player player, Item[] itemDatabase) {
itemDatabaseHard = ItemDb.searchItemDbDifficulty(2, itemDatabase);
int itemEasy = (int)(Math.random() * (itemDatabaseHard.length));
System.out.println("Where does " +
itemDatabaseHard[itemEasy] +" go?");
itemDatabaseHard[itemEasy].name +" go?");
userAnswer = Tools.matchTrashClassification(scanS.nextLine());
systemAnswer = itemDatabaseHard[itemEasy].classification;

Expand All @@ -206,7 +206,7 @@ public static Player classicalHard(Player player, Item[] itemDatabase) {
itemDatabaseHard = ItemDb.searchItemDbDifficulty(2, itemDatabase);
int itemEasy = (int)(Math.random() * (itemDatabaseHard.length));
System.out.println("Where does " +
itemDatabaseHard[itemEasy] +" go?");
itemDatabaseHard[itemEasy].name+" go?");
userAnswer = Tools.matchTrashClassification(scanS.nextLine());
systemAnswer = itemDatabaseHard[itemEasy].classification;

Expand All @@ -227,7 +227,7 @@ public static Player classicalHard(Player player, Item[] itemDatabase) {
itemDatabaseHard = ItemDb.searchItemDbDifficulty(2, itemDatabase);
int itemEasy = (int)(Math.random() * (itemDatabaseHard.length));
System.out.println("Where does " +
itemDatabaseHard[itemEasy] +" go?");
itemDatabaseHard[itemEasy].name +" go?");
userAnswer = Tools.matchTrashClassification(scanS.nextLine());
systemAnswer = itemDatabaseHard[itemEasy].classification;

Expand Down

0 comments on commit c271b9a

Please sign in to comment.