mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-07-06 17:41:36 +02:00
maintainer test grabs temp state
This commit is contained in:
@ -87,4 +87,5 @@ Rules:
|
||||
max_steps: 500
|
||||
|
||||
Tests:
|
||||
MaintainerTest: {}
|
||||
MaintainerTest: {}
|
||||
# DirtAgentTest: {}
|
@ -3,6 +3,7 @@ from random import randint
|
||||
|
||||
from tqdm import trange
|
||||
|
||||
from marl_factory_grid.algorithms.static.TSP_dirt_agent import TSPDirtAgent
|
||||
from marl_factory_grid.environment.factory import Factory
|
||||
|
||||
if __name__ == '__main__':
|
||||
@ -21,6 +22,7 @@ if __name__ == '__main__':
|
||||
if render:
|
||||
factory.render()
|
||||
action_spaces = factory.action_space
|
||||
# agents = [TSPDirtAgent(factory, 0)]
|
||||
while not done:
|
||||
a = [randint(0, x.n - 1) for x in action_spaces]
|
||||
obs_type, _, _, done, info = factory.step(a)
|
||||
|
Reference in New Issue
Block a user