h, w = fixed

This commit is contained in:
steffen-illium
2021-06-04 17:16:45 +02:00
parent 8ba7c418f0
commit 8ce92d5db4
5 changed files with 44 additions and 23 deletions

View File

@ -12,7 +12,7 @@ from environments import helpers as h
class MovementProperties(NamedTuple):
allow_square_movement: bool = False
allow_square_movement: bool = True
allow_diagonal_movement: bool = False
allow_no_op: bool = False
@ -111,6 +111,10 @@ class StateSlice(Register):
class BaseFactory(gym.Env):
# def __setattr__(self, key, value):
# if isinstance(value, dict):
@property
def action_space(self):
return spaces.Discrete(self._actions.n)