summaryrefslogtreecommitdiff
path: root/gamelib.py
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-11-09 20:19:51 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-11-09 20:19:51 +0800
commit681c87f5376402ad9043377d019e4add6aae9da9 (patch)
tree0dc844dbe3165dc5a19d7f067d649205fd9adee1 /gamelib.py
parent01a84bc0d8625d3c03bff8270889bf4083b4ee6f (diff)
gamelib for stuff for all games
Diffstat (limited to 'gamelib.py')
-rw-r--r--gamelib.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/gamelib.py b/gamelib.py
new file mode 100644
index 0000000..8728194
--- /dev/null
+++ b/gamelib.py
@@ -0,0 +1,8 @@
+def winending():
+ printinfo("Congratulations, You Win!")
+ exit(0)
+
+def loseending():
+ printwarning("You lose!")
+ printerror("RuntimeError: CRASHING Computer........")
+ raise RuntimeError("You lose!") \ No newline at end of file