Guest User

Untitled

a guest
Jan 17th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. function evaluateHand(d1, d2) {
  2. totalPoints = (document.gamePlay.playerPoints.value);
  3. playerBet = (document.gamePlay.betAmount.value);
  4. if (d1 == d2 || (d1+d2) == 12 || (d1*d2) == 12) {
  5. totalPoints = totalPoints + playerBet;
  6. } else {
  7. totalPoints = totalPoints - playerBet;
  8. }
  9. }
Add Comment
Please, Sign In to add comment