lib/from-data-view.js
function playerPairingFilter (tnmt) {
  return function (pairing) {
    // board number too high?
    if (tnmt.general[35] && pairing[4006] > tnmt.general[34]) { return false }

    // no color set?
    if (pairing[4000] === '4000-0') { return false }

    return true
  }
}
function playerPairingFilter (tnmt) {
  return function (pairing) {
    // board number too high?
    if (tnmt.general[35] && pairing[4006] > tnmt.general[34]) { return false }

    // no color set?
    if (pairing[4000] === '4000-0') { return false }

    return true
  }
}
function playerPairingFilter ( tnmt ) { return function ( pairing ) { // board number too high? if ( tnmt . general [ 35 ] && pairing [ 4006 ] > tnmt . general [ 34 ] ) { return false } // no color set? if ( pairing [ 4000 ] === '4000-0' ) { return false } return true } }
Filter function to remove dummy player pairings.
@param  {Object} pairing
@return {Boolean}         true -> valid pairing
Filter function to remove dummy player pairings .