Refactoring of movement logic and parallel collision checks

This commit is contained in:
steffen-illium
2021-05-11 17:30:06 +02:00
parent ebd8f46a16
commit c539e5dddd
3 changed files with 30 additions and 21 deletions

View File

@ -30,6 +30,6 @@ class SimpleFactory(BaseFactory):
if __name__ == '__main__':
import random
factory = SimpleFactory(n_agents=1, max_dirt=8)
random_actions = [random.randint(0, 8) for _ in range(200)]
random_actions = [random.randint(0, 7) for _ in range(200)]
for action in random_actions:
state, r, done, _ = factory.step(action)