- Keep track of which groups in the winning hand are concealed and which were open (revealed).
- Calculate base points (consider each group one at a time). See base table below. Round up to next 10.
- Double the base a number of times to get the score for the round. See doubles table below.
- Cap the score at 1000 (the limit).
- If the winning tile came from a discard, each player pays the winner their score, and the loser pays double.
- If the winning tile came from the wall, all players pay the winner double the score.
- Losers do not score their hands.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Imagine if we had a test framework that did this :...( | |
const models = require('../models') | |
const logger = require('../logger') | |
const Promise = require('bluebird') | |
const co = require('co') | |
const isGenFn = require('is-generator').fn | |
const colors = require('colors/safe') | |
function transactionStrategy(mocha) { |
OlderNewer