const name = {0:'Ace', 1:'2', 2:'3', 3:'4', 4:'5', 5:'6', 6:'7', 7:'8', 8:'9', 9:'10', 10:'Jack', 11:'Queen', 12:'King'};
const points = {0:1, 1:2, 2:3, 3:4, 4:5, 5:6, 6:7, 7:8, 8:9, 9:10, 10:10, 11:10, 12:10};
export function splicer(remainingCards) {
  let card = remainingCards.splice(parseInt(Math.random() * remainingCards.length, 10), 1)[0]
  return {card, remainingCards};
}
const suits = {0:'Spade', 1:'Heart', 2:'Club', 3:'Diamond'};

export {name, points, suits};