Skip to content

Commit 47c338c

Browse files
committed
bug fixes
1 parent e55597c commit 47c338c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# ChangeLog
22

3+
### v2.1.4
4+
5+
Fix bug with action formatter not handling lists
6+
37
### v2.1.3
48

59
Fix bug where calling reset with no seed crashes the engine.

luxai_s2/luxai_s2/actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def format_factory_action(a: int):
189189

190190
def format_action_vec(a: np.ndarray):
191191
# (0 = move, 1 = transfer X amount of R, 2 = pickup X amount of R, 3 = dig, 4 = self destruct, 5 = recharge X)
192-
a = a.astype(int)
192+
a = np.array(a).astype(int)
193193
a_type = a[0]
194194
if a_type == 0:
195195
act = MoveAction(a[1], dist=1, repeat=a[4], n=a[5])

luxai_s2/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def read(fname):
1717
long_description="Code for the Lux AI Challenge Season 2",
1818
packages=find_packages(exclude="kits"),
1919
entry_points={"console_scripts": ["luxai-s2 = luxai_runner.cli:main"]},
20-
version="2.1.3",
20+
version="2.1.4",
2121
python_requires=">=3.7",
2222
install_requires=[
2323
"numpy",

0 commit comments

Comments
 (0)