bug fixes
This commit is contained in:
parent
16103310c0
commit
9d8752ab40
@ -163,19 +163,16 @@ async function startRound(){
|
||||
btnNext.disabled=true;
|
||||
enableActions(true);
|
||||
resetButtonColors();
|
||||
btnSplit.disabled=!d.can_split;
|
||||
if(d.has_blackjack){
|
||||
feedback.textContent='Blackjack! You win or get a push!';
|
||||
feedback.style.color='green';
|
||||
enableActions(false);
|
||||
btnNext.disabled=false;
|
||||
}else if(d.can_split){
|
||||
feedback.textContent='You have a pair! Consider splitting.';
|
||||
feedback.style.color='white';
|
||||
}
|
||||
if(d.can_split){
|
||||
btnSplit.disabled=false;
|
||||
if(!d.has_blackjack){
|
||||
feedback.textContent='You have a pair! Consider splitting.';
|
||||
feedback.style.color='white';
|
||||
}
|
||||
}else{btnSplit.disabled=true}
|
||||
}catch(e){feedback.textContent='Error connecting to server';feedback.style.color='red'}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user