From 8d7e01560e1264dcb899d0754a838c58762a1e33 Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Fri, 26 Apr 2024 22:59:57 -0500 Subject: [PATCH] Formatting --- roulette.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/roulette.py b/roulette.py index 58ef4d8..5b319f4 100644 --- a/roulette.py +++ b/roulette.py @@ -1,4 +1,5 @@ import sys + sys.path.append("/dev-py-packages") from firepup650 import inputCast, clear @@ -14,15 +15,17 @@ while 1: round = 1 known = {} for i in range(total): - known[str(i+1)] = "" + known[str(i + 1)] = "" while total: clear() if known[str(round)]: print(f"Known Shell! Shell is {known[str(round)]}") - print(f"""Chance of live shell: {(live/(live+blank if live+blank>0 else 1))*100}% + print( + f"""Chance of live shell: {(live/(live+blank if live+blank>0 else 1))*100}% Chance of blank shell: {blank/(live+blank if live+blank>0 else 1)*100}% Shells left: {total} ({blank}B {live}L) -Next shell is?""") +Next shell is?""" + ) next = inputCast("> ").upper() if next in ["B", "L"]: blank = blank - 1 if next == "B" and not known[str(round)] else blank