Minor fixes

This commit is contained in:
Firepup Sixfifty 2024-06-03 14:42:31 -05:00
parent ad87d2e070
commit 4d1dc7f6a3
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

19
game.py
View file

@ -1,4 +1,4 @@
from firepup650 import clear, randint, sql, e, menu, gp, gh from firepup650 import clear, randint, sql, e, menu, gp, gh, cur, flushPrint
import random as r import random as r
from fkeycapture import get, getnum, getchars from fkeycapture import get, getnum, getchars
import os, time, sys, re import os, time, sys, re
@ -11,25 +11,29 @@ alphanum = list("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
def multipleOf(num: int, mult: int = 5) -> bool: def multipleOf(num: int, mult: int = 5) -> bool:
return num%mult == 0 return num%mult == 0
cur.hide()
clear()
print("Loading Loge City v 0.0.1...") print("Loading Loge City v 0.0.1...")
sleep(1) sleep(1)
print("Checking system compatibility...") flushPrint("Checking system compatibility...")
sleep(1) sleep(1)
print("\aOK.") print(" \aOK.")
sleep(1) sleep(1)
print("Checking imports...") flushPrint("Checking data...")
print("import ID UcO80qfR7o2BW3owpAQRsD6Q")
sleep(1) sleep(1)
print("\aOK.") print(" \aOK.")
sleep(1) sleep(1)
print("Loaded successfully") print("Loaded successfully")
print("Starting...") print("Starting...")
sleep(2) sleep(2)
cur.show()
log = menu({"Yes": 1, "No": 0, "Exit": "E"}, "Welcome to the city!\nDo you have an existing account?") log = menu({"Yes": 1, "No": 0, "Exit": "E"}, "Welcome to the city!\nDo you have an existing account?")
clear()
un = "" un = ""
if log == "E": if log == "E":
exit(0) exit(0)
if log: if log:
print("Login")
print("Username: ", end="") print("Username: ", end="")
un = gp(5, alphanum, allowDelete=True) un = gp(5, alphanum, allowDelete=True)
print("Password: ", end="") print("Password: ", end="")
@ -44,6 +48,7 @@ if log:
else: else:
print("Logged in.") print("Logged in.")
else: else:
print("Signup")
print("Username (alphanumeric): ", end="") print("Username (alphanumeric): ", end="")
un = gp(5, alphanum, allowDelete=True) un = gp(5, alphanum, allowDelete=True)
print("Password (alphanumeric):", end="") print("Password (alphanumeric):", end="")
@ -105,6 +110,8 @@ while 1:
bet = menu({"5": 5, "10": 10, "20": 20, "30": 30, "40": 40, "50": 50, "60": 60, "70": 70, "80": 80, "90": 90, "100": 100, "1000": 1000, "Exit": "E"}, "How many studs would you like to bet?") bet = menu({"5": 5, "10": 10, "20": 20, "30": 30, "40": 40, "50": 50, "60": 60, "70": 70, "80": 80, "90": 90, "100": 100, "1000": 1000, "Exit": "E"}, "How many studs would you like to bet?")
betHigh = 0 betHigh = 0
match bet: match bet:
case 5:
betHigh = 10
case 10: case 10:
betHigh = 20 betHigh = 20
case 20: case 20: