home *** CD-ROM | disk | FTP | other *** search
/ PDA Software Library / pdasoftwarelib.iso / PSION / 1997 / 1997.ZIP / 974 < prev    next >
Encoding:
Internet Message Format  |  1997-06-03  |  11.5 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 Score Tracking Application - MJSSHARE.ZIP (1/1)
  5. Followup-To: comp.sys.psion.apps
  6. Path: toga.it.dtu.dk!ej
  7. Message-ID: <ej859379952@it.dtu.dk>
  8. Date: Wed, 26 Mar 1997 12:39:13 GMT
  9. Approved: ej@it.dtu.dk
  10. Lines: 410
  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. I have tried to make the interface as intuitive as possible, but no doubt
  45. there are areas that can be improved.
  46.  
  47. Other features include:
  48.  
  49.     - Save/Load facility
  50.     - Enter Penalties scores
  51.     - Display hand scores
  52.     - Display total game score
  53.     - Dual format display (toggle with diamond key)
  54.     - Menu & Hotkey driven
  55.     - Tracks which is the current wind
  56.     - Tracks which player is East wind
  57.  
  58. The registered version adds the following features
  59.  
  60. Statistics database
  61.  
  62.     - number of games played
  63.     - number of games won
  64.     - average score
  65.     - best hand score
  66.     - best/worst game scores 
  67.     - average number of mahjongs
  68.     - % win rate
  69.     - etc...
  70.  
  71. Future Developments
  72.  
  73.     - History facility - keep a history of past games, who won,
  74.       scores etc.
  75.     - Anything you want to suggest that I can be bothered coding ;-)
  76.     - Ability to customise settings.  e.g. starting score - I've
  77.       assumed and hard coded a starting score of zero for games.
  78.     - No testing for 3c compatibility has been done
  79.     - If someone gives me a Siena I'll have a go at re-coding for
  80.       the smaller display (he says hopefully ;-)
  81.  
  82.  
  83. How to get MJS
  84.  
  85.     - I have posted the zip file containing all required files to
  86.       comp.binaries.psion
  87.     - The binaries are not currently available on the web, or via
  88.       ftp - I'm working on that.
  89.     - You can always email me at the address given below, and I
  90.       will email you a copy back.
  91.  
  92. Installation
  93.  
  94. Copy the files into the apps directory and install as normal.  
  95.  
  96.  
  97. Known Bugs, areas for improvement etc.
  98.  
  99.     - The ICON is crap!  I know it, you know it, but I'm no
  100.       graphic artist. However I am working on getting a decent
  101.       icon.  If you have one you wish to donate, I'll be more
  102.       than happy to use it. 
  103.     - Cannot escape out of dialog boxes.  Sloppy coding on my part,
  104.       but for the time being, escape will not cancel a dialog
  105.       box, if you hit escape, things will progress as
  106.       normal.  This means you could end up accidently entering
  107.       a zero score for players. (Hint: save the game after
  108.       each time you enter a round).
  109.     - Error checking.  Again, sloppy on my part, I really need to
  110.       tighten the error checking - mostly on imputing values.
  111.       There is nothing here though that should spoil your
  112.       enjoyment.  I've been using this application for months
  113.       now and have never lost a game half way through.
  114.     - The statistics screen (not available in the shareware version)
  115.       only displays about a dozen entries on the screen,
  116.       it crashes if you try to have more.  I need to implement a
  117.       paging/scrolling facility for the statistics screens/
  118.     - The score display.  I quite like the default score display,
  119.       but that doesn't everyone else will.  If you've got
  120.       suggestions - send them in.
  121.  
  122.  
  123.  
  124. Registration and how to contact me
  125.  
  126. Registration will bring you an updatesd version of the application
  127. that gives you all the functionality of the shareware version plus
  128. the statistics database functionality.  In addition you will get
  129. free bug patches, upgrades etc. as and when they become available.
  130.  
  131. Registration costs seven pounds sterling, or ten US dollars.
  132.  
  133. My news feed doesn't carry a lot of the psion newsgroups traffic,
  134. so I'll probably miss anything you post to usenet.
  135.  
  136. You can get me at the following address
  137.  
  138. Phil Davidson
  139. 70 Telford Road
  140. Edinburgh
  141. EH3 7JA
  142. Scotland
  143. UK
  144.  
  145. fil@mojo.europe.dg.com
  146. or
  147. davidson@dial.pipex.com
  148.  
  149.  
  150.  
  151. begin 600 mjsshare.zip
  152. MF=VU[]7FSF?.ASE!^7"\=[ >W_D0CH^(['IW3[?V[>URN^9 6BFIZ:Z9Z=N>
  153. MAQ@2%U:WBRMZ^DHYF'8+4<ZO+ZRNKA;=JUOT$T4_!%Z3ZQ J%2,`Z?Q*8!NP
  154. M'=@![ 1V`0YP%; GGT.X&I_W`M<`KP7V`=<"^X'7`=?E8[?H_Q^=$09_J9!B
  155. M9A>H'UU4$ CZ7"GN5]XF_OVV3[]7#*0+L-BA7UC?3W;YS?L_^KT7YQJ['W]P
  156. M7B_$*<@HOL&V?SYJ=>- 7J1==<C:`^WG8E2<NUB/M+H+!CR\;B?]U'^_6*&X
  157. MB&ED4F0>7P6\C*=7=& B6EO)I*F"0*HH"GQ7D:KLBBV3!9[$+=-RFIJVGL;*
  158. MM:N>0^;&F)LRI'B6EO-3GN!!30V3U1MC$DL%FH^-I:+<-FNT1 \S/IW3\G&J
  159. M[!PC`I(P6R_=#Z'^U*30Y `_R(-'&ON0%&RQLQ$_3'5,04#",W !V=#BN(A,
  160. M`O9Q\RF#0(%5_<!/V\XT[4'.ZU#AG!B<&^.4GY RUQAHT6</3(>S=YRIS/IF
  161. M3U@\;A;'T M80,UK!M *V#7&3:LD'\!>&.NZ#W4B!DIX)]NN\KPD-Q^*!Z3+
  162. M0C(02 IO35+?A6FK5%55HAVG&\CIC(E=S5O7W4)B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!L<118I<#0T/IYS@),$
  211. MMR'[%Q("D-" A S#*, +`%!+`P04````" !.57HBL[&W1N 3```(,@``# ``
  212. M`$UJ<W-H87)E+F]P8>T[?W"4UW'[_;@[Z00"A*P(Z2P^9"$??" D(<D@.Q3I
  213. M[^W;MV_W?4_:R)!VZ,'DX=RNU$1RXT80X$_%-4-:H+=WN/> -C)T8'@P$AGH
  214. M&PVU(0`'Q9$]@9^TMXOPP>5V: =%6 ;TX65%`'BWB!]//2'K9?I51/K=R7\%
  215. M5?X:?;./EVN :X-K!O[_L^2G!88?S&;'XY/)-BW8#X V&#Q02K2RHA-@[:JU
  216. MJ[:TX^3"8=<+L!+@]\ UUM<_%#K]#'A&0WT1+=SRA=<D]TBX;SC4\H6OR.XH
  217. MWQ@K[W=M!'DX%-X+[DA &PU%P!/H&PI@DU 1&+@71081%1G0HH2"@RZA(-5^
  218. MYU+IJ>0"5<(538CY(?)Y.!TYCM^'\?L8?L_C%W&H# U.]<=^7BR\7<Q_!C38
  219. ML?4[)3D$4>^C$ )_B[#3VX?(4_T'8NNA.@#>`$&#<_S9&_,2$KLT=^EJI 9.
  220. MO"?2@'MHP-'75&$\$*N"2",JG ^(</% [!"\#RJHGS)-0G&8PG6@VE416BG'
  221. M3$Z)Y^.IB?BAB:222BNY\:227:1)E&CK_8E S 67OJ-#R4#LTT"S2H;4SIMJ
  222. MO"\SI1R=RN:4;"X^B8TH1W!ZE =2D]F<WL%??$13YQ5T*<<"L= GD/+<1X5J
  223. MB-S!E5OXTD>ZM&P@%OT$TB(?%12(;(+3C,%+)J60"27T^JV&_(E ; M$.N&T
  224. M;LVQ)MY&%6,AZS-X6+_^YT.=+QV(W0:1;;R[U8QWKO#3#PL__C _"(?@#8$M
  225. MOGIP:^26(N#>JS\#^E-W;+HC-!:=X0.A%YI(@'<C:(F&3; K]IC@[@3R04.:
  226. M=T23!Q Y9P.;-EF5DK-2<E2*SDK142DX*P6J%#L1DR JZ@A;X[PDXRK?#+P*
  227. M%-(2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;4PW[P?HNX"#9#3+?PR3IP$X"^G4@B "SJU:BFD'&?>62G\FW@1_WG)6$
  244. MJ*5C/79ZWV&6.L%Z[<BXO*W\5867G=\5/$ '>/D6V 4*YH%HOM2YT5 @@B%E
  245. MBRT*1/R;04"FO^"_4Y?GT5<EG6IP3*6Y_!=PXG? 2Q3&+3[QG;<^\5^^A8E/
  246. M_;?/"76=PRQ 6*!>VZ>$NFR?D:^7SDA^+83A=JGDN,2>HQBY_ [^V%6>QYI)
  247. M;ZB\3MR%&>M:6)0-16+9D:K^66D>_:Q(:6<Y:YMU\F A>\K3Y3G-%UVC>08T
  248. M3&=L-91VF)&8/F6FEY'<: R6H[&MCE$D&K3!-$V+; *VT980T^(TUQ!V<A4X
  249. M^,,!7"V1K8OR'#4EW[V$Y"F3*K $5<*D&EJ":I)NH5S-%[9]C!'[0>B12B-V
  250. MZ\RMAB-E40.:R!Y[7%8:J?SZX81@<V_;68QF,W+!YJ0Z> !GF2JKU)T6XY3[
  251. MN;72Y:!7\S[X- P(+*6V9\"-AK.W;ZEH([Y%3=-7[NS7@^0K,<WU2YLF>Y?#
  252. MK03XI7E-^-DJNOYOWF#:C^G=DX)Q9?@7.&V_$HSKU'(-3J%HW!Q><QO B&B^
  253. M'EN*M^/T2WK@N1:!F*1'GUL1."@9L2GFCS GF8<^KR#X1<DP6!'CQ1?,RLX7
  254. M$?R>4=GYI6: OY?T.Y];[P#X=\D3Y#WY?"O]MX$9-;^,X*"L![L_]Z-,V8AX
  255. MVS<!_(=LAKUOM %L=0'\+U!+`0(R"Q0````(`!LP>B*\HDB6?0\````X```'
  256. M````````````( "V@0````!M:G,N9&]C4$L!`C(+% ````@`]RYZ(F2%]LZ#
  257. M" ``#!(```<``````````0`@`+:!H@\``$UJ<RYT>'102P$",@L4````" `A
  258. M47HBRN1V$9<```!@`@``!P```````````" `MH%*& ``36IS+G!I8U!+`0(R
  259. M"Q0````(`$Y5>B*SL;=&X!,```@R```,````````````( "V@089``!-:G-S
  260. >:&%R92YO<&%02P4&``````0`! #9````$"T`````
  261. `
  262. end
  263.  
  264. ---
  265. Please mail binaries to 'psion-binaries@it.dtu.dk' to put them in this group.
  266. This Psion binary was approved by Erik Johansen <ej@it.dtu.dk>
  267.                Also check out:  ftp://ftp.it.dtu.dk/pub/psion/index.html
  268.  
  269.