• Erik Nygren's avatar
    Refactoring: Intdocued fix_agents function. · ed12d9c1
    Erik Nygren authored
    At each step we first check for possible malfunctions.
    THen we apply them and do all the agent steps
    At the end we look at what agents should be fixed. This lead so to:
    
    Current malfunction value says how many step calls are necessary till agent can move again
    
    e.g. malfunction = 2, we have to call step() twice untill the agent can move again.
    ed12d9c1
test_utils.py 5.64 KB