21: Stick

21: Stick

function stick(){
 // transfer current score to high score if it's higher than the high score
 if(current_score>high_score){
  high_score = current_score;
  alert('This is a new High Score! Press OK to Play Again!');
 }
 else{
  alert('Well done for sticking before you went over 21! Press OK to Play Again!');
 }
 twenty1('Shuffle');
}
Comments are closed.