From afca8656879b13ca32ad456a665185b9720b315b Mon Sep 17 00:00:00 2001 From: Nagol12344 <63481547+Nagol12344@users.noreply.github.com> Date: Wed, 24 Nov 2021 22:23:18 +0000 Subject: [PATCH] Fix some things and do some testing in replit --- .gitignore | 3 +++ Main.py | 2 +- codestuffdontread.py | 9 +++++++-- notmain.py | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..38b137f --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.breakpoints +.replit +__pycache__ \ No newline at end of file diff --git a/Main.py b/Main.py index 2dc4c10..609f827 100644 --- a/Main.py +++ b/Main.py @@ -7,7 +7,7 @@ print('You wake up to find pitchforks and fire coming to your house') time.sleep(2) -print('The vliiagers are shouting "DEATH TO THE WITCH"') +print('The vilagers are shouting "DEATH TO THE WITCH"') time.sleep(5) print('"Oh no", you think "They know the witch is here"') time.sleep(7) diff --git a/codestuffdontread.py b/codestuffdontread.py index f129208..9fb41e1 100644 --- a/codestuffdontread.py +++ b/codestuffdontread.py @@ -1,4 +1,6 @@ import time +import json +import os def end1(): @@ -10,6 +12,8 @@ def end1(): time.sleep(10) print('Done!') time.sleep(2) + exit() + def win1(): time.sleep(2) @@ -22,14 +26,16 @@ def win1(): print('It only gets harder after then this') exec(open("notmain.py").read()) + def updatecheck(): import json test2 = '0' json_data = '{"update" : "1.0"}' parsed_json = (json.loads(json_data)) + class Test(object): def __init__(self, data): - self.__dict__ = json.loads(data) + self.__dict__ = json.loads(data) test1 = Test(json_data) if test1.update == '1.0': @@ -38,4 +44,3 @@ def __init__(self, data): print('You need to update, get the update at the github') elif test2 == '1': print('Your up to date') - \ No newline at end of file diff --git a/notmain.py b/notmain.py index 57771fd..62cbbe1 100644 --- a/notmain.py +++ b/notmain.py @@ -1,6 +1,6 @@ import time import random -from codestuffdontread import end +from codestuffdontread import end1 atu = 'Whats your pick? '