Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function evaluateHand(d1, d2) {
- totalPoints = (document.gamePlay.playerPoints.value);
- playerBet = (document.gamePlay.betAmount.value);
- if (d1 == d2 || (d1+d2) == 12 || (d1*d2) == 12) {
- totalPoints = totalPoints + playerBet;
- } else {
- totalPoints = totalPoints - playerBet;
- }
- }
Add Comment
Please, Sign In to add comment