Post Reply 
(11C) Mahjong scores
11-16-2018, 05:26 PM (This post was last modified: 11-17-2018 12:40 PM by Albert Chan.)
Post: #4
RE: (11C) Mahjong scores
(11-15-2018 09:47 PM)Rogier Wrote:  ... Now for the whole table:
EAST: 8 points
SOUTH: 20 points
WEST: 320 points (Winner)
NORTH: 64 points

Result (and this is what the program takes care of):
> SOUTH and NORTH pay WEST 320 points, EAST pays WEST 640 points
> SOUTH receives 2x(20-8) = 24 points from EAST
> SOUTH pays 64-20 = 44 points to NORTH
> EAST pays 2x(64-8) = 112 points to NORTH

Above cross exchange of points (from everyone) looks complicated.
Maybe it can be simplified a bit by removing EAST calculation.

players = {SOUTH, WEST, NORTH}
points = {20, 320, 64}

let c = sum(points) + 2*(EAST point) = 20 + 320 + 64 + 2*8 = 420
We use c to handle cross exchanges. Since WEST won, exchange = {c, 0, c}

scores = 4*points - exchange = 4 * {20, 320, 64} - {420, 0, 420} = {-340, +1280, -164}
EAST score = -sum(scores) = -(-340 + 1280 - 164) = -776

Can you provide an example where EAST win ?
My guess is, this should work (EAST win 6X his points): scores = 3*points - c
Find all posts by this user
Quote this message in a reply
Post Reply 


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)