From 681c87f5376402ad9043377d019e4add6aae9da9 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 9 Nov 2023 20:19:51 +0800 Subject: gamelib for stuff for all games --- gamelib.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 gamelib.py (limited to 'gamelib.py') 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 -- cgit v1.2.3