home *** CD-ROM | disk | FTP | other *** search
/ PDA Software Library / pdasoftwarelib.iso / PSION / MISC / LOTTERY / LOTTERY.OPA / LOTTERY.txt next >
Encoding:
Text File  |  1995-04-12  |  5.3 KB  |  325 lines

  1. OPLObjectFile**
  2. LOC::B:\OPL\ALAN\LOTTERY.OPL
  3. Lottery.LOT
  4. \OPD\
  5. HAND%
  6. TICKID%
  7. LINE%
  8. MATCH%
  9. SETUP
  10. +"Lottery  (v1.39)  
  11. Alan Meban 1995
  12. LOC::M:\OPD\DRAWS.LOT
  13. LOC::M:\OPD\LINES.LOT
  14. LOC::M:\OPD\LOTTERY.SET
  15. abcdhloqstx
  16. Draws+
  17. Store a drawOdh+
  18. Analyse stored drawsOa+
  19. Show stored drawsOs
  20. Lines+
  21. Store a lineOlh+
  22. Analyse stored linesOb+
  23. Show stored linesOt
  24. Check+
  25. your numbersOc
  26. Special+
  27. Set preferencesOq+
  28. HelpOh+
  29. Odds of winningOoh+
  30. ExitOx
  31. helpk
  32. procxk
  33. Try pressing [Help] or [Menu]
  34. FOPEN
  35. FLINE$
  36. FCLOSE
  37. The draw file (
  38. ) is missingKW8
  39. The line file (
  40. ) is missingKW8
  41. Include bonus balls+
  42. Yes,No
  43. Building up graph
  44. O    O1PO
  45. O    PHO}
  46. O    PH(
  47. O    PH(
  48. O1@[x
  49. Draws (with bonus)O
  50. Draws (not bonus)O
  51. LinesO
  52. TICKET
  53. MATCH%
  54. 8\`[b
  55. +.Error: Numbers must all differ from each other
  56. DIFF%
  57. TICKET
  58. Enter a draw(
  59. Enter a line(
  60. Ball 1:O
  61. Ball 2:O
  62. Ball 3:O
  63. Ball 4:O
  64. Ball 5:O
  65. Ball 6:O
  66. Bonus ball:O
  67. SHOWERR%
  68. HAND%
  69. fclose:O
  70. SHOWERR%
  71. FLINE$
  72. HAND%
  73. O$hD[
  74. fline$:O
  75. SHOWERR%
  76. HAND%
  77. fopen:O
  78. SHOWERR%
  79. HAND%
  80. fwline:O
  81. HELP2
  82. HELP3
  83. PROCO
  84. HELP4
  85. Lottery Help(
  86. Menu options(
  87. File formats(
  88. Odds of winning(
  89. About program/author(
  90. Menu: Draws(
  91. Store a draw+$Write a draw result to the draw fileO
  92. Analyse stored draws+!Show the frequencies of each ballO
  93. in the stored drawsO
  94. Show stored draws+
  95. List the draws in the draw fileO
  96. Menu: Lines(
  97. Store a line+$Write a ticket line to the line fileO
  98. Analyse stored lines+#Show the frequencies of each numberO
  99.  +&in the stored lines (useful to see theO
  100.  + spread of a syndicate's numbers)O
  101. Show stored lines+&List the ticket lines in the line fileO
  102. Menu: Check(
  103. +:Essentially draw results are checked against ticket lines.O
  104. +:The draws and lines may be entered manually, or taken fromO
  105. +2the files of stored draw results and ticket lines.O
  106. +3Matches and tickets can be displayed when a winningO
  107. +,combination is found, always, or not at all.O
  108. Menu: Check(
  109. Your numbers+
  110. are displayed in greyO
  111. Draw numbers+
  112. are displayed in boldO
  113. (Bonus balls are displayed inO
  114. bold italics)O
  115. Matches+
  116. are displayed in reverse videoO
  117. (ie, white on black)O
  118. Menu: Special(
  119. Preferences+*Specify the draw/line filenames and chooseO
  120.  +!whether to pause before scrollingO
  121. Help+
  122. Miscellaneous adviceO
  123. Odds of winning+
  124. How unlikely you are to winO
  125. Exit+
  126. Leave the programO
  127. File formats: General(
  128. Note:+$The draw and line files must conformO
  129.  +$to the specification detailed in theO
  130. following help pages.O
  131.  +%It is possible to edit the files withO
  132.  +(the built-in text editor - but make sureO
  133.  +&all the columns line up and that thereO
  134. are no blank lines.O
  135. File formats: Draw file(
  136. Format:+
  137. DD/MM/YY
  138. (XX)(
  139. DD/MM/YY
  140. (XX)(
  141. where+(DD/MM/YY is the draw date (eg, 12/
  142. 2/95)O
  143.  +"XX is a ball number (eg, 42 or 
  144.  +'(XX) is a bonus ball (eg, (42) or (
  145. Note:++'
  146. ' represents a space - they are importantO
  147. File formats: Line file(
  148. Format:+
  149. where+"XX is a ball number (eg, 42 or 
  150. Note:++'
  151. ' represents a space - they are importantO
  152. About this program(
  153. +5I wrote this utility after some folk in work formed aO
  154. +621-person syndicate, with 21 lines each week. I neededO
  155. +3some way to check that they hadn't won the jackpot:O
  156.  to satisfy my curiosityO
  157.  and to ensure that I wouldn't be the only one left onO
  158. +*   Monday morning to answer all the phonesO
  159. About this program(
  160. +!Alan Meban wrote this utility andO
  161. can be contacted by emailingO
  162. af341@yfn.ysu.eduO
  163.  ameban@bfsec.bt.co.ukO
  164. LINE%
  165. LINE%
  166. Press a key ...O
  167. PAUSE
  168.  1:KO
  169.  2:KO
  170.  3:KO
  171.  4:KO
  172.  5:KO
  173.  Bo:KO
  174.  6:KO
  175. ANALYSE
  176. ANALYSE
  177. ENTER%
  178. PAUSE
  179. Check+2the numbers you're about to enter,all stored lines
  180. Against+Dthe draw you're about to enter,the last stored draw,all stored draws
  181. Display matches+8never,if 3 or more numbers matches,after each comparison
  182. Display ticket+8never,if 3 or more numbers matches,after each comparison
  183. +-             Line / Draw              Matches
  184. procc2k
  185. FOPEN
  186. FLINE$
  187. FCLOSE
  188. PAUSE
  189. HAND%
  190. procc3k
  191. procc3k
  192. procc3k
  193. Shouldn't be here!
  194.  1:KO
  195.  2:KO
  196.  3:KO
  197.  4:KO
  198.  5:KO
  199.  Bo:KO
  200.  6:KO
  201. Matches:
  202. CHECK%
  203. PRLINE
  204. FOPEN
  205. FLINE$
  206. FCLOSE
  207. HAND%
  208. Shouldn't be here!
  209. STORE
  210. helpk
  211. STORE
  212.  Odds of Winning the UK Lottery 
  213. 6 numbers  [Jackpot]+
  214. 13,983,816 to 1O
  215. 5 numbers + Bonus+
  216. 2,330,636 to 1O
  217. +    5 numbers+
  218. 55,491.3 to 1O
  219. +    4 numbers+
  220. 1,032.4 to 1O
  221. +    3 numbers+    56.7 to 1(
  222. +    Any prize+
  223. 54 to 1(
  224. +#(Approx. 250,000 folk win each week(
  225. +!- it might not be you after all!)(
  226. FOPEN
  227. FWLINE
  228. FCLOSE
  229. Set preferences
  230. Previous draws(
  231. Your (or syndicate) lines(
  232. Other preferences(
  233. Pause+
  234. never,after each page of text
  235. Save new preferences?
  236. NoOnh+
  237. YesOy
  238. O'h@[A
  239. Error: 
  240.  is a read only fileK+
  241. - this is incorrectW8
  242. SHOWFILE
  243. SHOWFILE
  244. Really Exit?
  245. NoOnh+
  246. YesOy
  247. W7Oy@[
  248.  DISCLAIMER 
  249. +-The author of this software has no connection
  250. +/with "Camelot" (the organisers of "The National
  251. +,Lottery") and does not guarantee any results
  252. +(generated or predicted by this software.
  253. +(Error: Draws always happen on a Saturday
  254. STYAT
  255. NUM2$
  256. FOPEN
  257. FLINE$
  258. FCLOSE
  259. TICKID%
  260. + National Lottery Results Checker
  261. OxOxO
  262. Error 
  263.  in K
  264. PAUSE
  265. FOPEN
  266. FLINE$
  267. FCLOSE
  268. +    s stored:
  269. + Date     Balls drawn       Bonus
  270.  [not Saturday]
  271. +(Error: Draws always happen on a Saturday
  272. DIFF%
  273. TICKET
  274. FOPEN
  275. FWLINE
  276. FCLOSE
  277. Store a draw(
  278. +    Saturday:O
  279. Store a line(
  280. Ball 1:O
  281. Ball 2:O
  282. Ball 3:O
  283. Ball 4:O
  284. Ball 5:O
  285. Ball 6:O
  286. Bonus ball:O
  287. STYAT
  288. NUM2$
  289. TICKID%
  290. LOTTERY
  291. ANALYSEU
  292. CHECK%
  293. DIFF%>
  294. ENTER%
  295. FCLOSE
  296. FLINE$8
  297. FOPEN
  298. FWLINE=
  299. HELP2
  300. HELP34
  301. HELP4
  302. LINE$
  303. NUM2$H
  304. PAUSEm
  305. PRLINE
  306. PROCA
  307. PROCB
  308. PROCC
  309. PROCC2,#
  310. PROCC3
  311. PROCD|(
  312. PROCH
  313. PROCL
  314. PROCO
  315. PROCQD*
  316. PROCSM,
  317. PROCTr,
  318. PROCX
  319. SETUP}.
  320. SHOWERR%
  321. SHOWFILE
  322. STORE
  323. STYAT
  324. TICKET
  325.