Please enter a seed value [integer]: 1 ******************************************************************************** ---Warmest Welcome to the largest Casino in Las Vegas--- The Games available in this casino include: Roulette, Slots and Craps. ***Game Instructions*** You need to choose from the following options by entering the corresponding integer: ------------------------------------------------------------------------------------ 1. View Status Report A detailed report of the current status is printed, which includes: i). Current Balance; ii). Initial Balance; iii). Number of Games You Played; iv). Number of Roulette Games You Played; v). Number of Slots Games You Played. vi). Number of Craps Games You Played. 2. Play Roulette First you need to decide what you want to bet on: color or number, 1 for color and 2 for number --- For the option of color, you then need to specify which color to bet: Red or Black, 1 for Red and 2 for Black. --- --- For the option of number, you then need to specify which number to bet: 0-36 --- --- Then enter the amount of bet (NOTE: the bet must be in whole dollar increments --- Rules for color: If the color you bet on matches the color spun, you will win an amount equal to your bet; if not, you lose your bet. Rules for number: If the number you bet on matches the number spun, you will win an amount equal to 35 times your bet; if not, you lose your bet. 3. Play Slots <(NOTE: this game requires a bet of $5)> This slot machine has 3 reels, each of those can spin to some number in the range of 1-4 The rules is as follows: i). You win $25 if all 3 reels spin to a same number ii). You win nothing but your bet is returned if any and only 2 of the reels spin to the same number iii). You lose your bet if no matches exist for the 3 reels 4. Play Craps 2 six-sided dice are rolled, your score is based on the sum of these dice, the rules are as follows: i). You win an amount equal to your bet if the score is 7 or 11; ii). You lose your bet if the score is 2 or 3; iii). Both dice are rolled again for other scores. a). If the score is the same as the first score, you win an amount equal to your bet. b). If the score is 7, you lose your bet. c). If the score is not the same as the first score or equal to 7, the dice are kept rolling until a) or b) happen. 5. Quit The Game is Over if you enter 5. IMPORTANT: If you have used up your balance or quit the games, a brief report of your status will be presented including following: i). Remaining balance; ii). Initial balance; iii). Amount of money you won or lost. ******************************************************************************** **************************************************** Your remaining balance is: $100 **************************************************** Please enter a number to trigger an activity described in the instructions: 1 ***************************Current Status Report*************************** Current Balance: $100 Initial Balance: $100 Total Number of Games you have played: 0 Number of times that Roulettes games you have played: 0 Number of times that Slots games you have played: 0 Number of times that Craps games you have played: 0 **************************************************** Your remaining balance is: $100 **************************************************** Please enter a number to trigger an activity described in the instructions: 2 ***************************Roulette Game Begins*************************** Please choose what you want to bet on (1 for color, 2 for number): Yinggang Huang What you entered was not a number, but only numbers are valid. Please enter a number (1 for color, 2 for number): 0 The number you entered is out of valid range, only 1 or 2 is valid. Please enter a number in the valid range (1 for color, 2 for number): 3.65 What you entered was not a number, but only numbers are valid. Please enter a number (1 for color, 2 for number): 8 The number you entered is out of valid range, only 1 or 2 is valid. Please enter a number in the valid range (1 for color, 2 for number): 1 ---You just decided to bet on color--- Please choose which color you want to bet on (1 for Red, 2 for Black): 1 ***You decided to bet on Red*** Please enter how much you wanna bet for this game (from $1 up to your current balance in whole dollar increments): 10 **********After Spinning the Wheel********** ---summary--- You've decided to bet on color. ------------------------------- What you bet: Red What the rolette actually got: Red ------------------------------- Net change this game: +10 **************************************************** Your remaining balance is: $110 **************************************************** Please enter a number to trigger an activity described in the instructions: 6 The number you entered is out of valid range, only 1, 2, 3, 4 or 5 is valid. Please enter a number in the valid range: CS302 What you entered was not a number, but only numbers and only 1, 2, 3, 4 or 5 is valid. Please enter a number to trigger an activity: 2 ***************************Roulette Game Begins*************************** Please choose what you want to bet on (1 for color, 2 for number): 1 ---You just decided to bet on color--- Please choose which color you want to bet on (1 for Red, 2 for Black): 2 ***You decided to bet on Black*** Please enter how much you wanna bet for this game (from $1 up to your current balance in whole dollar increments): 5 **********After Spinning the Wheel********** ---summary--- You've decided to bet on color. ------------------------------- What you bet: Black What the rolette actually got: Red ------------------------------- Net change this game: -5 **************************************************** Your remaining balance is: $105 **************************************************** Please enter a number to trigger an activity described in the instructions: 3 ***************************Slots Game Begins*************************** **********After Spinning the 3 reels********** ---result summary--- The result for the 1st reel is: 2 The result for the 2nd reel is: 2 The result for the 3rd reel is: 1 Only 2 reels match, you didn't win anything but your bet has been returned to you. ********************************************** **************************************************** Your remaining balance is: $105 **************************************************** Please enter a number to trigger an activity described in the instructions: 3 ***************************Slots Game Begins*************************** **********After Spinning the 3 reels********** ---result summary--- The result for the 1st reel is: 1 The result for the 2nd reel is: 2 The result for the 3rd reel is: 3 No match exists across the 3 reels ********************************************** **************************************************** Your remaining balance is: $100 **************************************************** Please enter a number to trigger an activity described in the instructions: 3 ***************************Slots Game Begins*************************** **********After Spinning the 3 reels********** ---result summary--- The result for the 1st reel is: 4 The result for the 2nd reel is: 3 The result for the 3rd reel is: 1 No match exists across the 3 reels ********************************************** **************************************************** Your remaining balance is: $95 **************************************************** Please enter a number to trigger an activity described in the instructions: 3 ***************************Slots Game Begins*************************** **********After Spinning the 3 reels********** ---result summary--- The result for the 1st reel is: 1 The result for the 2nd reel is: 4 The result for the 3rd reel is: 1 Only 2 reels match, you didn't win anything but your bet has been returned to you. ********************************************** **************************************************** Your remaining balance is: $95 **************************************************** Please enter a number to trigger an activity described in the instructions: 3 ***************************Slots Game Begins*************************** **********After Spinning the 3 reels********** ---result summary--- The result for the 1st reel is: 4 The result for the 2nd reel is: 3 The result for the 3rd reel is: 4 Only 2 reels match, you didn't win anything but your bet has been returned to you. ********************************************** **************************************************** Your remaining balance is: $95 **************************************************** Please enter a number to trigger an activity described in the instructions: 3 ***************************Slots Game Begins*************************** **********After Spinning the 3 reels********** ---result summary--- The result for the 1st reel is: 4 The result for the 2nd reel is: 4 The result for the 3rd reel is: 2 Only 2 reels match, you didn't win anything but your bet has been returned to you. ********************************************** **************************************************** Your remaining balance is: $95 **************************************************** Please enter a number to trigger an activity described in the instructions: 3 ***************************Slots Game Begins*************************** **********After Spinning the 3 reels********** ---result summary--- The result for the 1st reel is: 2 The result for the 2nd reel is: 4 The result for the 3rd reel is: 2 Only 2 reels match, you didn't win anything but your bet has been returned to you. ********************************************** **************************************************** Your remaining balance is: $95 **************************************************** Please enter a number to trigger an activity described in the instructions: 3 ***************************Slots Game Begins*************************** **********After Spinning the 3 reels********** ---result summary--- The result for the 1st reel is: 1 The result for the 2nd reel is: 2 The result for the 3rd reel is: 2 Only 2 reels match, you didn't win anything but your bet has been returned to you. ********************************************** **************************************************** Your remaining balance is: $95 **************************************************** Please enter a number to trigger an activity described in the instructions: 3 ***************************Slots Game Begins*************************** **********After Spinning the 3 reels********** ---result summary--- The result for the 1st reel is: 3 The result for the 2nd reel is: 4 The result for the 3rd reel is: 1 No match exists across the 3 reels ********************************************** **************************************************** Your remaining balance is: $90 **************************************************** Please enter a number to trigger an activity described in the instructions: 4 ***************************Craps Game Begins*************************** Please enter an amount of bet in whole dollar increments: 35 **********begin: result right after 1st-time of rolling********** Value of the 1st die is: 3 Value of the 2nd die is: 2 Your first-time score is : 5 **********end: result right after 1st-time of rolling********** **********begin: results for rollings after 2nd-time, 3rd-time,4th-time and so on********** Value of the 1st die after 2nd time of rolling is: 5 Value of the 2nd die after 2nd time of rolling is: 1 -------------------------------------------------------------------------- Value of the 1st die after 3rd time of rolling is: 5 Value of the 2nd die after 3rd time of rolling is: 6 -------------------------------------------------------------------------- Value of the 1st die after 4th time of rolling is: 4 Value of the 2nd die after 4th time of rolling is: 4 -------------------------------------------------------------------------- Value of the 1st die after 5th time of rolling is: 1 Value of the 2nd die after 5th time of rolling is: 4 -------------------------------------------------------------------------- **********end: results for rollings after 2nd-time, 3rd-time,4th-time and so on********** Great, you have just won $35!!! cheer!!! ********************************************** **************************************************** Your remaining balance is: $125 **************************************************** Please enter a number to trigger an activity described in the instructions: 3 ***************************Slots Game Begins*************************** **********After Spinning the 3 reels********** ---result summary--- The result for the 1st reel is: 4 The result for the 2nd reel is: 3 The result for the 3rd reel is: 2 No match exists across the 3 reels ********************************************** **************************************************** Your remaining balance is: $120 **************************************************** Please enter a number to trigger an activity described in the instructions: 4 ***************************Craps Game Begins*************************** Please enter an amount of bet in whole dollar increments: Yinggang Huang What you entered was not a number, but only numbers are valid. Please enter a bet amount (must be positive in whole dollar increments): 25 **********begin: result right after 1st-time of rolling********** Value of the 1st die is: 2 Value of the 2nd die is: 4 Your first-time score is : 6 **********end: result right after 1st-time of rolling********** **********begin: results for rollings after 2nd-time, 3rd-time,4th-time and so on********** Value of the 1st die after 2nd time of rolling is: 4 Value of the 2nd die after 2nd time of rolling is: 1 -------------------------------------------------------------------------- Value of the 1st die after 3rd time of rolling is: 1 Value of the 2nd die after 3rd time of rolling is: 1 -------------------------------------------------------------------------- Value of the 1st die after 4th time of rolling is: 5 Value of the 2nd die after 4th time of rolling is: 6 -------------------------------------------------------------------------- Value of the 1st die after 5th time of rolling is: 5 Value of the 2nd die after 5th time of rolling is: 4 -------------------------------------------------------------------------- Value of the 1st die after 6th time of rolling is: 3 Value of the 2nd die after 6th time of rolling is: 4 -------------------------------------------------------------------------- **********end: results for rollings after 2nd-time, 3rd-time,4th-time and so on********** Sorry,you just lost $25 ********************************************** **************************************************** Your remaining balance is: $95 **************************************************** Please enter a number to trigger an activity described in the instructions: 1 ***************************Current Status Report*************************** Current Balance: $95 Initial Balance: $100 Total Number of Games you have played: 14 Number of times that Roulettes games you have played: 2 Number of times that Slots games you have played: 10 Number of times that Craps games you have played: 2 **************************************************** Your remaining balance is: $95 **************************************************** Please enter a number to trigger an activity described in the instructions: Let's try to lose everything What you entered was not a number, but only numbers and only 1, 2, 3, 4 or 5 is valid. Please enter a number to trigger an activity: 4 ***************************Craps Game Begins*************************** Please enter an amount of bet in whole dollar increments: lol What you entered was not a number, but only numbers are valid. Please enter a bet amount (must be positive in whole dollar increments): 950 **********begin: result right after 1st-time of rolling********** Value of the 1st die is: 1 Value of the 2nd die is: 2 Your first-time score is : 3 **********end: result right after 1st-time of rolling********** Sorry,you just lost $95 ********************************************** <<<<>>>> ********************************Game Status Report******************************** 1. Remaining Balance: $0 2. Initial Balance: $100 3. You lost: $100 Thank you for coming to Casino, it is our mission to serve you the best. we hope you will come again :) ********************************GAME OVER********************************