Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneT2000 committed Feb 4, 2023
1 parent e55597c commit 47c338c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog

### v2.1.4

Fix bug with action formatter not handling lists

### v2.1.3

Fix bug where calling reset with no seed crashes the engine.
Expand Down
2 changes: 1 addition & 1 deletion luxai_s2/luxai_s2/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def format_factory_action(a: int):

def format_action_vec(a: np.ndarray):
# (0 = move, 1 = transfer X amount of R, 2 = pickup X amount of R, 3 = dig, 4 = self destruct, 5 = recharge X)
a = a.astype(int)
a = np.array(a).astype(int)
a_type = a[0]
if a_type == 0:
act = MoveAction(a[1], dist=1, repeat=a[4], n=a[5])
Expand Down
2 changes: 1 addition & 1 deletion luxai_s2/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def read(fname):
long_description="Code for the Lux AI Challenge Season 2",
packages=find_packages(exclude="kits"),
entry_points={"console_scripts": ["luxai-s2 = luxai_runner.cli:main"]},
version="2.1.3",
version="2.1.4",
python_requires=">=3.7",
install_requires=[
"numpy",
Expand Down

0 comments on commit 47c338c

Please sign in to comment.