Skip to content

Commit

Permalink
Updated version to pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
abbyssoul committed Dec 10, 2020
1 parent 6ab470a commit ec635b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 3 additions & 3 deletions coderone/dungeon/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@


TICK_STEP = 0.1 # Number of seconds per 1 iteration of game loop
ITERATION_LIMIT = 200*10 # Max number of iteration the game should go on for, None for unlimited
ITERATION_LIMIT = 180*10 # Max number of iteration the game should go on for, None for unlimited

logger = logging.getLogger()
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
Expand Down Expand Up @@ -70,7 +70,7 @@ def __load_or_generate_config(config_file:Optional[str]) -> dict:
os.makedirs(config_dir, exist_ok=True)
logger.warning(f"Writing default config into: {config_file}")
with open(config_file, "w") as f:
jsonplus.dump(config_data, f, indent=4, sort_keys=True)
f.write(jsonplus.pretty(config_data))


config_data.setdefault('start_paused', False)
Expand Down Expand Up @@ -274,10 +274,10 @@ def main():
print("Can not start paused in non-interactive mode. Exiting", file=sys.stderr)
sys.exit(1)

jsonplus.prefer_compat()

players = args.players.split(',') if args.players else None
result = run_match(agents=args.agents, players=players, config_name=args.config, record_file=args.record, watch=args.watch, args=args)
jsonplus.prefer_compat()
print(jsonplus.pretty(result))

# We done here, all good.
Expand Down
6 changes: 1 addition & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='coderone-challenge-dungeon',
version='0.1.3.dev6',
version='0.1.4',
description='Dungeons and data structures: Coder one AI Game Tournament',
url='https://github.com/gocoderone/dungeons-and-data-structures',
author='Ivan Ryabov',
Expand All @@ -24,9 +24,6 @@
'arcade==2.4.3',
'watchdog==0.10.4',
'jsonplus==0.8.0'

# 'fire',
# 'requests'
],
python_requires='>=3.6',
entry_points = {
Expand Down Expand Up @@ -87,5 +84,4 @@

]
},
# data_files=[('config.json', ['data/data_file'])],
)

0 comments on commit ec635b0

Please sign in to comment.