Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. //1's=$5
  2. //2's=$10
  3. //3's=$25
  4. //4's=$50
  5. //5's=$100
  6.  
  7. //public static void genNums(int[] slots) - generate the random numbers
  8. //public static int winnings(int[] slots) - returns the winnings of the slots.
  9.  
  10. {
  11. import java.util.Scanner;
  12. import java.util.Random;
  13.  
  14. public class slotmachine
  15. {
  16. public static void main(String args[])
  17. {
  18. int userMoney;
  19. int slot1[] = new int[3];
  20. char playmore;
  21. slot1 = slotnumber
  22. //char playmore = input.nextChar().charAt(0);
  23.  
  24. Scanner input = new Scanner;
  25.  
  26. System.out.print("How much money to start with?");
  27. usermoney = input.nextInt();
  28.  
  29. if (userMoney > 0 || )
  30. {//spin
  31. }
  32. }
  33.  
  34. public static void genNums(int[] slots)
  35. {
  36. Random randGen = new Random();
  37. int slotnumber[] = new int[3];
  38. slotnumber[1] = randGen.nextInt(5) +1;
  39. slotnumber[2] = randGen.nextInt(5) +1;
  40. slotnumber[3] = randGen.nextInt(5) +1;
  41. return slotnumber[];
  42. }
  43.  
  44. public static void winnings(int[] slots)
  45. {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement