Skip to content
Snippets Groups Projects
Forked from Flatland / Flatland
Source project has a limited visibility.
  • Erik Nygren's avatar
    c85e08ee
    Refactoring: Intdocued fix_agents function. · c85e08ee
    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.
    
    Code cleanup
    c85e08ee
    History
    Refactoring: Intdocued fix_agents function.
    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.
    
    Code cleanup