home *** CD-ROM | disk | FTP | other *** search
/ PDA Software Library / pdasoftwarelib.iso / PSION / 1997 / 1997.ZIP / 1002 < prev    next >
Encoding:
Internet Message Format  |  1997-06-03  |  9.3 KB

  1. From: Phil Davidson <fil@mojo.europe.dg.com>
  2. To: comp-binaries-psion@uunet.uu.net
  3. Newsgroups: comp.binaries.psion
  4. Subject: Mah Jongg Scoring Program is now Freeware - mjs.zip (1/1)
  5. Followup-To: comp.sys.psion.apps
  6. Path: toga.it.dtu.dk!ej
  7. Message-ID: <ej862563513@it.dtu.dk>
  8. Date: Fri, 2 May 1997 08:58:33 GMT
  9. Approved: ej@it.dtu.dk
  10. Lines: 306
  11.  
  12. MJS - Mah Jongg Scorer
  13. For the Psion 3a
  14. Copyright by Phil Davidson
  15.  
  16. Introduction
  17.  
  18. I have been playing Mah Jongg for a number of years now, one of the
  19. problems that our faced was that of keep score of a game.  We'd quickly
  20. work out what each hand had scored, but it took quite a few minutes
  21. on paper to work out the adjusted scores, and then to update the 
  22. ongoing score for the whole game.
  23.  
  24. At that time, I was blessed with my first Psion.  I soon recognised
  25. the potential for developing a small application that would allow
  26. me to track the scoring of a Mah Jongg game.
  27.  
  28. Out of that need, came this application.
  29.  
  30.  
  31. Overview
  32.  
  33. The MJS application does not calculate what an individual hand scores
  34. i.e. you can't tell it that you've got 2 pongs of minor tiles and
  35. a pong of dragons, and have it tell you what that scores.  We found
  36. that using the psion for this did not in anyway speed up our play,
  37. we can work out hand scores quite quickly.
  38.  
  39. What it can do though, is let you input the four hand scores, and
  40. will work out who owes who what, it will make the appropriate
  41. adjustements, and give you the resulting score, along with the new
  42. total score for the whole game.
  43.  
  44. Please note, this is not based around the fan scoring method, although if
  45. there's
  46. demand, I could make a fan scoring version.  The scoring mechanism is based
  47. around the 2 points for a pong in minor tiles, 32 for a concealed kong of
  48. major tiles, doubles for this and doubles for that.
  49.  
  50. I have tried to make the interface as intuitive as possible, but no doubt
  51. there are
  52. areas that can be improved.
  53.  
  54. Other features include:
  55.  
  56.     - Save/Load facility
  57.     - Enter Penalties scores
  58.     - Display hand scores
  59.     - Display total game score
  60.     - Dual format display (toggle with diamond key)
  61.     - Menu & Hotkey driven
  62.     - Tracks which is the current wind
  63.     - Tracks which player is East wind
  64.  
  65. Statistics database
  66.  
  67.     - number of games played
  68.     - number of games won
  69.     - average score
  70.     - best hand score
  71.     - best/worst game scores 
  72.     - average number of mahjongs
  73.     - % win rate
  74.     - etc...
  75.  
  76. Future Developments
  77.  
  78.     - History facility - keep a history of past games, who won,
  79.       scores etc.
  80.     - Anything you want to suggest that I can be bothered coding ;-)
  81.     - Ability to customise settings.  e.g. starting score - I've
  82.       assumed and hard coded a starting score of zero for games.
  83.     - No testing for 3c compatibility has been done
  84.     - If someone gives me a Siena I'll have a go at re-coding for
  85.       the smaller display (he says hopefully ;-)
  86.  
  87.  
  88. How to get MJS
  89.  
  90.     - Check out my home page, http://ds.dial.pipex.com/davidson/
  91.     - I have posted the zip file containing all required files to
  92.       comp.binaries.psion
  93.     - You can always email me at the address given below, and I
  94.       will email you a copy back.
  95.  
  96. Installation
  97.  
  98. Copy the files into the apps directory and install as normal.  
  99.  
  100.  
  101. Known Bugs, areas for improvement etc.
  102.  
  103.     - Cannot escape out of all dialog boxes. But all the major ones are
  104.       catered for.
  105.     - Error checking.  Again, sloppy on my part, I really need to
  106.       tighten the error checking - mostly on imputing values.
  107.       There is nothing here though that should spoil your
  108.       enjoyment.  I've been using this application for months
  109.       now and have never lost a game half way through.
  110.     - The statistics screen only displays about a dozen entries on the screen,
  111.       it crashes if you try to have more.  I need to implement a
  112.       paging/scrolling facility for the statistics screens/
  113.     - The score display.  I quite like the default score display,
  114.       but that doesn't everyone else will.  If you've got
  115.       suggestions - send them in.
  116.  
  117.  
  118.  
  119. Registration and how to contact me
  120.  
  121. There is NO registration, I had originally released  this as shareware, but
  122. have decided to release it as freeware. I still retain copyright, and
  123. request
  124. that you do not modify this distribution file in anyway, but do feel free
  125. to pass it on and around.
  126.  
  127. My news feed doesn't carry a lot of the psion newsgroups traffic,
  128. so I'll probably miss anything you post to usenet.
  129.  
  130. You can get me at the following email address
  131.  
  132. fil@mojo.europe.dg.com
  133. or
  134. davidson@dial.pipex.com
  135.  
  136.  
  137.  
  138. begin 600 mjs.zip
  139. M?4BR93!@'!=L8Q[$.(('QC:V`PXAV)*,<6P]US(HB4@6@11LUDBL) L<[$GB
  140. M33LAZCGWOD_)&#;=K3Q^[]YSSSGWW'///?><^ZXV-* =.9XXFNT=&T]LV0("
  141. M!E'@=G^'V?/38OT(^!0<8W?HAS]M^A&N= L"7"X4P*8?R=3/#9M^F&:>Q*=@
  142. M:,FNGP\6U\^3K[<2?X99JI_=-OUX3/U@\V>2-;JE]"/0#QIA\'BF60OTZ% T
  143. MO\"A(DQ8^7X;P/I5ZU=).&-/0Y_K>5@)\!5PC73W# 1G9L S'.P.:Z'&K[\@
  144. M>&CDP:&@V.$J"X]TC[#RO:X5( \&0P? $^[3(M@50- E/"]53\IEWY-=K\MQ
  145. M1DH(@SOLUX:#8? ,!4/=`R,/@ASN/A@$>4#K#H G%(R0!L'0HZ5%-F<H0ITD
  146. M/P(1[UEX!'R-PE[O, *G>@Y%-T'E"'A'J-8_R]]=42\!4<;9YZZ%JV"&:#8*
  147. M!MQ)`XY<5H51?[0"PG4X`WQ !(OYHX?A8U!!76G:!1<JO0`$KCB82&?&4DFE
  148. M']S(5T*XG0\M_ZT;.K>,/QKY$MP>N)%7('POS# "+UF30M83U]MW&OS'_='M
  149. M$/;#C&[(T0;>1P4C(<,S:)A<8- E_5$4=[\N[K]^GO_GSW/]< 3>%-@*7 -N
  150. M8[T=T-]^_:V[+=W-&0O-\'#0!0W$P+L%M'CM5NB-_H;@;@-R/@.:=TB3^Q X
  151. M:ZLV;+4:)6>CY&@4G8VBHU%P-@K4*+8A)$Y8) A;U[PDX\K>!KQ)F+*HO Z6
  152. M,32H4V/)^/WG59#N`;LX^:YBLFHB0Y\R/FX1;EB$,A>"L_ .-XIZ\/B[!_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:*<W)(#8"K-3"!< VSP0$S7LV]N&?QY87ZV.&)L]"9ZX%$*+$@I?^W-CYY
  202. MJ[,E?K A<+K*DI-F>>C$#-0P`<7&V,D"$<-+*S+*B< D>P/6&#O!719:)^R7
  203. MAO PQYP=+%4-#%$,EXH0(&5VD]TDEQ0[P=J$Y#];4RN?6R&6NBSDIPN=7XS]
  204. MNEH7ERIT$YPT;>/?2QP&\$=X9IR>(@P^V?4?<N+>AD5]K3[&@E<H>, 19.$S
  205. M-8_<=V@4+@M\W9(2R U3K):_;N)MB 9[/^B\;=KO'@K$+!?7H>QUT21)`^72
  206. MGL0`A?M*;;[Q(K'V+JP@-_@O$JL#N['*RS P3F'?W<:_4Q1Z&E2.X8E_OJDY
  207. M1'1KVN1W6V.H3D)&. 31HR]NQHB"PH.N%>V"#!T()EET+6:MEY9;HL1 C(XG
  208. M%S0T*Q^E78K=?]=6CI-G1@.=QM!)?+:QRX ]67 C)SS'1R;N3JQ*LZIG2"=J
  209. MC!$VJ.^7@3U0-),T:%K)NFE<KZCKP,YE<X>I4M#G9 6[!#L.H/B?'"R^QP+?
  210. M3<]5MZLD(QD9G,BV3CR8@[;A?K_[EQW@<:H9D_14X1%!Z" TM@W^E2^__@8J
  211. M7DX<1%.,PJ %;(2BR<KH9U0C!*" 0-NS3G5NV>\$;6,[9RK.[033PT($;MQ\
  212. M43C36^OE5@ZV[(&9GC0TZIPH:-VS_,Z9^\U+(CJ=*#9@<ONFVCXCN'7 88@2
  213. MIK(\@$"_F^)C/-H%@[\]FH'-`%^U*.*M(WSWNE/L=_\!4$L!`C(+% ````@`
  214. M(3F<(E$>A]4<% ``W#(```<````````````@`+:!`````$UJ<RYO<&%02P$"
  215. M,@L4````" `JA) BC'G4??<```!@`@``!P```````````" `MH%!% ``36IS
  216. M+G!I8U!+`0(R"Q0````(`(M&HB*@J%N_S0<``&$0```'``````````$`( "V
  217. B@5T5``!-:G,N='AT4$L%!@`````#``,`GP```$\=````````
  218. `
  219. end
  220.  
  221. ---
  222. Please mail binaries to 'psion-binaries@it.dtu.dk' to put them in this group.
  223. This Psion binary was approved by Erik Johansen <ej@it.dtu.dk>
  224.                Also check out:  ftp://ftp.it.dtu.dk/pub/psion/index.html
  225.  
  226.