mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-03-28 17:32:36 +01:00
Update blackjack.py
This commit is contained in:
@@ -131,7 +131,7 @@ def success_rate(card, obj_h):
|
||||
rate = (VALUES[card[0][1]] / diff) * 100
|
||||
|
||||
if rate < 100:
|
||||
msg += f"If Hit, chance {100-int(rate)}% success, {int(rate)}% failure."
|
||||
msg += f"If Hit, chance {int(rate)}% success, {100-int(rate)}% failure."
|
||||
elif rate > 100:
|
||||
l_rate = int(rate - (rate - 99)) # Round to 99
|
||||
if card[0][1] == "A":
|
||||
|
||||
Reference in New Issue
Block a user