MCPcopy Create free account
hub / github.com/codemistic/Web-Development / randomCard

Function randomCard

blackjackgame/blackjack.js:64–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64function randomCard(){
65 let num = Math.floor(Math.random() * 13);
66 let card = blackjackGame.cards[num];
67 return card;
68}
69
70function showCard(card, activePlayer){
71 if(activePlayer.result <= 21){

Callers 2

blackjackHitFunction · 0.85
blackjackStandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected