Skip to content

Commit

Permalink
Merge pull request #99 from PixPanz/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
GrimQuagle authored Feb 21, 2021
2 parents 2eb3828 + d048766 commit ca9048d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion game/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
SET_NUMBER_OF_CLIENTS_CONTINUE = 1 # required number of clients to continue running the game; should be None when MIN_CLIENTS or MAX_CLIENTS are used

ALLOWED_MODULES = ["game.client.user_client", # modules that clients are specifically allowed to access
"game.common.enums"]
"game.common.enums",
"math"]

RESULTS_FILE_NAME = "results.json" # Name and extension of results file
RESULTS_DIR = os.path.join(os.getcwd(), "logs") # Location of the results file
Expand Down
3 changes: 2 additions & 1 deletion game/utils/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def verify_code(filename):
illegal_imports.append(module)

line.remove('from')
line.remove('import')
if 'import' in line:
line.remove('import')
elif 'import' in line:
module = line[line.index('import') + 1]
if module not in ALLOWED_MODULES:
Expand Down
3 changes: 1 addition & 2 deletions wrapper/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
v = '1.1.1'

v = '1.1.2'

0 comments on commit ca9048d

Please sign in to comment.