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

Function blackjackHit

blackjackgame/blackjack.js:21–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19document.querySelector('#blackjack-deal-button').addEventListener('click', reset);
20
21function blackjackHit(){
22 let card = randomCard();
23 showCard(card, YOU);
24 updateAndShowResult(card, YOU);
25 document.querySelector('#blackjack-stand-button').disabled = false;
26}
27
28function sleep(ms){
29 return new Promise(resolve => setTimeout(resolve, ms));

Callers

nothing calls this directly

Calls 3

randomCardFunction · 0.85
showCardFunction · 0.85
updateAndShowResultFunction · 0.85

Tested by

no test coverage detected