Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def determineHits(houseDigits, userDigits, hits, hit_earnings):
- local_temp = 0
- for n in range (3):
- if houseDigits[n] == userDigits[n]:
- hits += 1
- local_temp += 1
- hit_earnings += HIT_PRIZE
- if local_temp == 3:
- special_bonus = calculateSpecial3HitBonus(userDigits)
- hit_earnings += special_bonus
- bonusTriangle()
- return hits, hit_earnings
Add Comment
Please, Sign In to add comment