Skip to content

Commit

Permalink
Added 20 different items to the wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-tieu committed Aug 3, 2024
1 parent 59a3cce commit 275f7e0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/uta/cse3310/Wheel.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
package uta.cse3310;

public class Wheel {
private String[] item;
private String[] items = {"Nothing", "Bankrupt", "Free Spin", "Consonant Hint", "Vowel Hint",
"100", "150", "200", "250", "300",
"350", "400", "450", "500", "550",
"600", "700", "800", "900", "1000"};

public String getRandomItem() {
return null;
int randIndex = (int)(Math.random() * 20);
return items[randIndex];
}
}

0 comments on commit 275f7e0

Please sign in to comment.