Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SlotRunner
- {
- public static void main(String[] args)
- {
- SlotMachine test = new SlotMachine("penguin", "gnu", "linux", "ubuntu", "mint", "openwrt");
- //to be used in Part A
- while ( !test.getWinner() )
- {
- System.out.println("spin "+ spinNum + ": "+ test.spin());
- spinNum++;
- if(test.getWinner())
- {
- System.out.println("you won\n");
- }
- else
- {
- System.our.println("you lost\n");
- }
- }
- //you will add code for Part B
- }
- //to be used in Part B
- public static void trials(SlotMachine test, int num)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement