Guest User

Untitled

a guest
Jul 17th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. def determineHits(houseDigits, userDigits, hits, hit_earnings):
  2.     local_temp = 0
  3.     for n in range (3):
  4.                 if houseDigits[n] == userDigits[n]:
  5.                     hits += 1
  6.                     local_temp += 1
  7.                     hit_earnings += HIT_PRIZE
  8.                     if local_temp == 3:
  9.                         special_bonus = calculateSpecial3HitBonus(userDigits)
  10.                         hit_earnings += special_bonus
  11.                         bonusTriangle()
  12.     return hits, hit_earnings
Add Comment
Please, Sign In to add comment