Skip to content

Commit

Permalink
update snake_simple to have easy author name change
Browse files Browse the repository at this point in the history
  • Loading branch information
NinjaTyper committed Jul 10, 2023
1 parent e746ab6 commit 28bdb1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snake_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def move(game_state: typing.Dict) -> typing.Dict:
return {"move": next_move}

if __name__ == "__main__":
dataFilePath = Path(__file__).parent / "snake_simple.json"
dataFileName = "snake_"+author_name+".json"
dataFilePath = Path(__file__).parent / dataFileName
rhandle = open(dataFilePath, "r")

gamestate = json.load(rhandle)
Expand Down

0 comments on commit 28bdb1b

Please sign in to comment.