Advertisement
Guest User

sad

a guest
Oct 24th, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. loop
  2. var x : string (1)
  3. var rules : string
  4. colourback (black)
  5. colour (white)
  6. put "do you need to see the rules ? put y or n"
  7. get rules
  8. if rules = "y" then
  9. getch (x)
  10. cls
  11. drawfillbox (0, 0, maxx, maxy, 7)
  12. colourback (black)
  13. colour (white)
  14. put "Welcome to craps here are the rules"
  15. getch (x)
  16. cls
  17. drawfillbox (0, 0, maxx, maxy, 7)
  18. colourback (black)
  19. colour (white)
  20. put
  21. "1. The shooter (player) makes a come-out roll with the intention of establishing a point. If the shooter's come-out roll is a 2, 3 or 12, it is called craps and the round ends, the shooter loses."
  22.  
  23. getch (x)
  24. cls
  25. drawfillbox (0, 0, maxx, maxy, 7)
  26. colourback (black)
  27. colour (white)
  28. put "2. A come-out roll of 7 or 11 is called a natural resulting in a win"
  29. getch (x)
  30. cls
  31. drawfillbox (0, 0, maxx, maxy, 7)
  32. colourback (black)
  33. colour (white)
  34. put
  35. "3. Either way, the come-out roll continues for the same shooter until a point is established. If the numbers 4, 5, 6, 8, 9, or 10 are rolled on the come-out, this number becomes the point and the come out roll is now over."
  36. getch (x)
  37. cls
  38. drawfillbox (0, 0, maxx, maxy, 7)
  39. colourback (black)
  40. colour (white)
  41. put "4. The shooter will now continue rolling until either the point is rolled or a seven is rolled. If the shooter is successful in rolling the point, the result is a win."
  42. getch (x)
  43. cls
  44. drawfillbox (0, 0, maxx, maxy, 7)
  45. colourback (black)
  46. colour (white)
  47. put "5. If the shooter rolls a seven (called a seven-out) the shooter loses. (Then a new shooter takes over.)"
  48. getch (x)
  49. cls
  50. drawfillbox (0, 0, maxx, maxy, 7)
  51. exit
  52. elsif rules = "n" then
  53. cls
  54. drawfillbox (0, 0, maxx, maxy, 7)
  55. exit
  56. end if
  57. end loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement