mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-06-21 19:31:34 +02:00
renaming
This commit is contained in:
0
marl_factory_grid/modules/_template/__init__.py
Normal file
0
marl_factory_grid/modules/_template/__init__.py
Normal file
11
marl_factory_grid/modules/_template/constants.py
Normal file
11
marl_factory_grid/modules/_template/constants.py
Normal file
@ -0,0 +1,11 @@
|
||||
TEMPLATE = '#' # TEMPLATE _identifier. Define your own!
|
||||
|
||||
# Movements
|
||||
NORTH = 'north'
|
||||
EAST = 'east'
|
||||
SOUTH = 'south'
|
||||
WEST = 'west'
|
||||
NORTHEAST = 'north_east'
|
||||
SOUTHEAST = 'south_east'
|
||||
SOUTHWEST = 'south_west'
|
||||
NORTHWEST = 'north_west'
|
24
marl_factory_grid/modules/_template/rules.py
Normal file
24
marl_factory_grid/modules/_template/rules.py
Normal file
@ -0,0 +1,24 @@
|
||||
from typing import List
|
||||
from marl_factory_grid.environment.rules import Rule
|
||||
from marl_factory_grid.utils.results import TickResult, DoneResult
|
||||
|
||||
|
||||
class TemplateRule(Rule):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(TemplateRule, self).__init__(*args, **kwargs)
|
||||
|
||||
def on_init(self, state):
|
||||
pass
|
||||
|
||||
def tick_pre_step(self, state) -> List[TickResult]:
|
||||
pass
|
||||
|
||||
def tick_step(self, state) -> List[TickResult]:
|
||||
pass
|
||||
|
||||
def tick_post_step(self, state) -> List[TickResult]:
|
||||
pass
|
||||
|
||||
def on_check_done(self, state) -> List[DoneResult]:
|
||||
pass
|
Reference in New Issue
Block a user