(11C) Mahjong scores
|
11-14-2018, 08:47 PM
(This post was last modified: 11-15-2018 09:12 AM by Rogier.)
Post: #1
|
|||
|
|||
(11C) Mahjong scores
Play and scoring characteristics:
Various variants of this game exist. This program was written to support score keeping according to the system I am used to. Gameplay:
Scoring:
The program: If you indicate who won and you input the scores for player 1, 2, 3 and 4, the program takes care of doubling for EAST and exchanging points between players. It also keeps track of the player who is EAST. Notes: Fitting this in the memory of an 11C proved tricky and my first efforts didn’t fit. In the end my brother in law worked out this system which I turned into a program with 9 lines to spare. It took us so long we didn’t have time left to play.
USE OF THE PROGRAM
Code:
Used Registers: I: EAST R0: Total points scored R1: Total player 1 R2: Total player 2 R3: Total player 3 R4: Total player 4 R5: Points scored by player 1 // replaced by 3 or 4 (muliplier for payments) R6: Points scored by player 2 R7: Points scored by player 3 R8: Points scored by player 4 R9: Winner Used Labels: Lbl A: Player 1 wins Lbl B: Player 2 wins Lbl C: Player 3 wins Lbl D: Player 4 wins Lbl 0: Input points scored Lbl 1: Determine EAST for next the game Lbl 2: Simple jumps forward Lbl 7: Calculates points to pay to each player Lbl 9: Start new game HP 33E, HP 11C, HP 48 SX, HP 35S |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(11C) Mahjong scores - Rogier - 11-14-2018 08:47 PM
RE: (11C) Mahjong scores - Albert Chan - 11-15-2018, 03:24 PM
RE: (11C) Mahjong scores - Rogier - 11-15-2018, 09:47 PM
RE: (11C) Mahjong scores - Albert Chan - 11-16-2018, 05:26 PM
RE: (11C) Mahjong scores - Rogier - 11-16-2018, 10:26 PM
RE: (11C) Mahjong scores - Albert Chan - 11-17-2018, 12:01 AM
RE: (11C) Mahjong scores - Rogier - 11-17-2018, 10:10 AM
|
User(s) browsing this thread: 1 Guest(s)