mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-06-22 03:31:35 +02:00
Comments, small bugfixes removed legacy elements
This commit is contained in:
@ -12,6 +12,12 @@ from marl_factory_grid.utils.results import Result, DoneResult
|
||||
|
||||
class StepRules:
|
||||
def __init__(self, *args):
|
||||
"""
|
||||
TODO
|
||||
|
||||
|
||||
:return:
|
||||
"""
|
||||
if args:
|
||||
self.rules = list(args)
|
||||
else:
|
||||
@ -77,6 +83,12 @@ class Gamestate(object):
|
||||
return [y for x in self.entities for y in x if x.var_can_move]
|
||||
|
||||
def __init__(self, entities, agents_conf, rules: List[Rule], lvl_shape, env_seed=69, verbose=False):
|
||||
"""
|
||||
TODO
|
||||
|
||||
|
||||
:return:
|
||||
"""
|
||||
self.lvl_shape = lvl_shape
|
||||
self.entities = entities
|
||||
self.curr_step = 0
|
||||
|
Reference in New Issue
Block a user