Skip to content

Commit

Permalink
Merge pull request #40 from dstl/dev
Browse files Browse the repository at this point in the history
v1.1.1
  • Loading branch information
ChrisMcCarthyDev authored Mar 10, 2023
2 parents cab32c5 + bbfd1bf commit 862b790
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
pip install wheel
- name: Build Yawning-Titan
run: |
python setup.py bdist_wheel
python setup.py sdist
- name: Install Yawning-Titan
run: |
YT=$(ls ./dist/yawningtitan-*.*.*-*.whl)
YT=$(ls ./dist/yawningtitan-*.*.*.tar.gz)
python -m pip install torch==1.11+cpu -f https://download.pytorch.org/whl/torch_stable.html
python -m pip install $YT[dev] --default-timeout 1000
- name: Lint with flake8
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include LICENSE
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.0
1.1.1
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ def _ray_3_beta_rllib_py_platform_pip_install() -> str:
"tensorflow": ["tensorflow==2.11.0"],
},
package_data={"yawning_titan": package_data_paths()},
data_files=[(".", ["VERSION"])],
include_package_data=True,
cmdclass={
"install": PostInstallCommand,
Expand Down
5 changes: 4 additions & 1 deletion yawning_titan/agents/keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ def play(self, render_graphically: bool = True):
print("Node: ", node, " State: ", state)

# checks if the red or blue agent won
if self.env.current_duration == self.env.settings["GAME_RULES"]["max_steps"]:
if (
self.env.current_duration
== self.env.network_interface.game_mode.game_rules.max_steps.value
):
print("---Blue agent wins---")
else:
print("---Red agent wins---")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.9"
"version": "3.9.13"
},
"vscode": {
"interpreter": {
Expand Down

0 comments on commit 862b790

Please sign in to comment.