function deckComp(count) {
    // Composition for a deck with no cards pulled
    let baseComp = (() => {
      let a = fillArray(CARD_ODDS, 10);
      a[8] = TEN_ODDS;
      return a;
    })();
    if(count.system === 'ko') {
      return koComp(count);
    } else if(count.system === 'none') {
      return baseComp;
    } else {
      return countingComp(count);
    }
  }
// Chance that we draw each card
Chance that we draw each card
Chance that we draw each card
function deckComp(count) {
    let baseComp = (() => {
      let a = fillArray(CARD_ODDS, 10);
      a[8] = TEN_ODDS;
      return a;
    })();
    if(count.system === 'ko') {
      return koComp(count);
    } else if(count.system === 'none') {
      return baseComp;
    } else {
      return countingComp(count);
    }
  }
function deckComp ( count ) { let baseComp = ( ( ) => { let a = fillArray ( CARD_ODDS , 10 ) ; a [ 8 ] = TEN_ODDS ; return a ; } ) ( ) ; if ( count . system === 'ko' ) { return koComp ( count ) ; } else if ( count . system === 'none' ) { return baseComp ; } else { return countingComp ( count ) ; } }
Chance that we draw each card
Chance that we draw each card
// Composition for a deck with no cards pulled