From 3df7efd33f89bcc0eba42e0c91a387499899c7be Mon Sep 17 00:00:00 2001 From: TropiiDev Date: Thu, 27 Feb 2025 12:45:36 -0500 Subject: [PATCH] Implement an updated load_options function --- .DS_Store | Bin 0 -> 6148 bytes CHANGELOG.md | 2 +- api/sql.py | 4 ---- functions.py | 11 +++++++---- main.py | 8 ++++++-- 5 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..44176da3e9720e67f884b591e5cb065bfecc31c6 GIT binary patch literal 6148 zcmeHKOHKko5Pb~Fj9sn8eL&8@e(cSF5gIDl;uJl!RN0^UW zW3(!%dObZ=U0rX|-O~U}dp$e^ngD84!O9*@fyjH&oRoZz#2Gur0DTPbfLru(-rAuI zCxI7Sy|xFm*{V3>|8-Dh&tF=Un%HKs1P`-JR?x1(H^jpYap++mF= zYhGc58C%Q3S-xem?QlkYMof#m%|XU{7gwyMg$~Y%1=ZwOXyTC-EI7B3ZB6(zus|+Xu%D@)`vOfe=!N_Cc&~6 Any | None: else: return False -def login(email, password): +def login(email: str, password: str): data = { "email": email, "password": password @@ -35,9 +35,12 @@ def login(email, password): def load_options() -> int: print(""" Here are the available options: -* To select an option just enter its number * -1. Home - View the inventory +* To select an option, just enter its number * +1. Home - View the inventory, Save Progress, or View gold and health, Quit +2. Cave - Mine for gold +3. Shop - Buy weapons, pickaxes, or upgrades +4. Arena - Fight monsters for more gold. """) option = int(input("")) - return option \ No newline at end of file + return option diff --git a/main.py b/main.py index 7b5c365..0ca7c4f 100644 --- a/main.py +++ b/main.py @@ -1,8 +1,9 @@ +# Imports from functions import * import requests - +# The user object user = None # Does the user have an active account? @@ -35,4 +36,7 @@ else: while user is not None: print(f"Welcome {user['name']}!") - break \ No newline at end of file + options = load_options() + + print(options) + break