mettagrid 0.1.1__py3-none-any.whl → 0.1.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mettagrid might be problematic. Click here for more details.
- build/mettagrid/actions/change_color.cpp +2 -2
- mettagrid/config/room/ascii.py +3 -1
- mettagrid/grid.hpp +4 -2
- {mettagrid-0.1.1.dist-info → mettagrid-0.1.2.dist-info}/METADATA +1 -1
- {mettagrid-0.1.1.dist-info → mettagrid-0.1.2.dist-info}/RECORD +7 -7
- {mettagrid-0.1.1.dist-info → mettagrid-0.1.2.dist-info}/LICENSE +0 -0
- {mettagrid-0.1.1.dist-info → mettagrid-0.1.2.dist-info}/WHEEL +0 -0
mettagrid/config/room/ascii.py
CHANGED
|
@@ -3,7 +3,7 @@ import numpy as np
|
|
|
3
3
|
from mettagrid.config.room.room import Room
|
|
4
4
|
|
|
5
5
|
SYMBOLS = {
|
|
6
|
-
"A": "agent",
|
|
6
|
+
"A": "agent.agent",
|
|
7
7
|
"Ap": "agent.prey",
|
|
8
8
|
"AP": "agent.predator",
|
|
9
9
|
"a": "altar",
|
|
@@ -11,6 +11,8 @@ SYMBOLS = {
|
|
|
11
11
|
"g": "generator",
|
|
12
12
|
"W": "wall",
|
|
13
13
|
" ": "empty",
|
|
14
|
+
"b": "block",
|
|
15
|
+
"L": "lasery"
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
class Ascii(Room):
|
mettagrid/grid.hpp
CHANGED
|
@@ -85,8 +85,10 @@ class Grid {
|
|
|
85
85
|
GridLocation loc2 = obj2->location;
|
|
86
86
|
obj1->location = loc2;
|
|
87
87
|
obj2->location = loc1;
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
|
|
89
|
+
// Keep the layer the same
|
|
90
|
+
grid[loc1.r][loc1.c][loc2.layer] = id2;
|
|
91
|
+
grid[loc2.r][loc2.c][loc1.layer] = id1;
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
inline GridObject* object(GridObjectId obj_id) {
|
|
@@ -42,7 +42,7 @@ build/mettagrid/action.cpp,sha256=GtU1WOd0X99cuCe9gFMtVdDyYNgZtWpIuzpg-n04Luc,11
|
|
|
42
42
|
build/mettagrid/actions/actions.cpp,sha256=-d5_tRIHP-ONM3e1tVyZ2vfbd0ph1gbDOF3i05L2vSs,1162449
|
|
43
43
|
build/mettagrid/actions/attack.cpp,sha256=zqBTW6acVQpLkROoTcGucKFopnI4o2E8J9CBHHNLe1Y,1147065
|
|
44
44
|
build/mettagrid/actions/attack_nearest.cpp,sha256=IXlQY9X0tX0nI_lhJ3AXJREkTuKwJJ8Azx8zIUQxqpU,1112512
|
|
45
|
-
build/mettagrid/actions/change_color.cpp,sha256=
|
|
45
|
+
build/mettagrid/actions/change_color.cpp,sha256=jYFXSZElhuxXSXKBT8McalFKSsmUSuqisHVcaO7gxW8,1108821
|
|
46
46
|
build/mettagrid/actions/get_output.cpp,sha256=xPyfaGzCrCGNLJ9-Hbt05nMHzkwWS7R-qQSXydMLGSA,1125417
|
|
47
47
|
build/mettagrid/actions/gift.cpp,sha256=5fLgXpYb8sLel3RlodSAk6wLzC6n0RLF20rcXXQ7eFs,1107553
|
|
48
48
|
build/mettagrid/actions/move.cpp,sha256=Z2M54ItapI5Iye24LoQnY0OqbplEclWWiEfp3qTmtoE,1107192
|
|
@@ -186,7 +186,7 @@ mettagrid/actions/swap.pyx,sha256=SXgn5mCUFBt4P3BOe61bSBn4zdBRHxBGc6ePekpWQnM,14
|
|
|
186
186
|
mettagrid/actions/use.cpython-311-darwin.so,sha256=jrGpfVPqU-LROL6a-6-C7_94B_ADYCcrgEneXFpbZ10,186760
|
|
187
187
|
mettagrid/base_encoder.cpython-311-darwin.so,sha256=5YeHMdKCIGaxm71xEf_zB5shdgMQs_dC45nzJ399LjY,188064
|
|
188
188
|
mettagrid/config/config.py,sha256=0Apm1TwHCDcd2LIdW2BH4pk6dqJ0fVNaVOTC309fI5g,1210
|
|
189
|
-
mettagrid/config/room/ascii.py,sha256=
|
|
189
|
+
mettagrid/config/room/ascii.py,sha256=FxcA8eGTc-haNLDeT5fePi7QFtBYGxB-sIXJLbM2dik,793
|
|
190
190
|
mettagrid/config/room/cognitive_evals/barriermaze.py,sha256=MPjGjY-SU06D57KNR-g9cWRIreXYReppp7G3cVxGcH8,4647
|
|
191
191
|
mettagrid/config/room/cognitive_evals/corridor_maze.py,sha256=3KHz16kH6rYE-z0pKlqL1L4rMailcU50zTMeJze9s6U,3539
|
|
192
192
|
mettagrid/config/room/cognitive_evals/cylinder.py,sha256=qFYwrS-_N1njEe0wajcM563yCIrLuBSmrVMYIWNYqRc,4027
|
|
@@ -207,7 +207,7 @@ mettagrid/event.pxd,sha256=-NTNGBu2ESVihtvp5CvmOICtvEZHKU8_d89-9mZ9isw,1110
|
|
|
207
207
|
mettagrid/event.pyx,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
208
208
|
mettagrid/grid.cpp,sha256=7iYUHvvcBnu2EMkb8yiqxwIdKOPpRcYXLQ-D4cu8HrY,20
|
|
209
209
|
mettagrid/grid.cpython-311-darwin.so,sha256=7G4qtvzw8b_rcrLYNyRkkfsdq5JnDbyWTYGL9T_Ulqw,16744
|
|
210
|
-
mettagrid/grid.hpp,sha256=
|
|
210
|
+
mettagrid/grid.hpp,sha256=lErxCdd32jue11jT9uGg2Zll7zM11_kxVJ9TscK52WM,6329
|
|
211
211
|
mettagrid/grid.pxd,sha256=wKNHILQsToB1eqGp42pmSuVG-hQrANYjSD4RbNYoV1w,1794
|
|
212
212
|
mettagrid/grid_agent.pxd,sha256=JRPk0TAJabTdxV4wlUoP3PeOnVkXNcAlMWqPnnXfwTE,134
|
|
213
213
|
mettagrid/grid_agent.pyx,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -320,7 +320,7 @@ tests/regen_track_last_action_trace.py,sha256=a1QdBRkvvBC7C0ZANQiwknb3QFQa6iHkNm
|
|
|
320
320
|
tests/test_basic.py,sha256=moICNw_9L_lfSQRT2k7LWdEIEC9x2kwK1o46ClVvz2Q,4861
|
|
321
321
|
tests/test_kinship.py,sha256=TvyPBbVazgYMGP-KbkWqKoo1QO1d3iT2uPwccyKypss,2406
|
|
322
322
|
tests/test_leaks.py,sha256=Uo-L5h68knTDVcnSUZ8rNXeb-rcMTOqZNOB0SYTC5_I,570
|
|
323
|
-
mettagrid-0.1.
|
|
324
|
-
mettagrid-0.1.
|
|
325
|
-
mettagrid-0.1.
|
|
326
|
-
mettagrid-0.1.
|
|
323
|
+
mettagrid-0.1.2.dist-info/LICENSE,sha256=_0ZygdDOImEUQjXap6LgAetwhuvlOfOqcMDmNlAdjLo,1070
|
|
324
|
+
mettagrid-0.1.2.dist-info/METADATA,sha256=YfnOnGPCb2fcdw4zIZS7m_AF5IZ0ivWIs9LAirMxoHQ,7166
|
|
325
|
+
mettagrid-0.1.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
326
|
+
mettagrid-0.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|