renardyreveur / hide-and-seek

2 stars 0 forks source link

Environment updates #4

Closed renardyreveur closed 3 years ago

renardyreveur commented 3 years ago

Currently, the test code runs in a while loop.

The eventual goal should be that the time step function or the update function should be called explicitly on the environment. Indicating a time step over in the world.

Something like the following:

for t in range(10000):
    env.step()
    base_map = env.map

    for agent in env.agents:
        cv2.circle(base_map, (agent.x, agent.y), agent.size, (0,200, 200), -1)

    cv2.imshow("map", base_map)
    cv2.waitKey(0)

On top of this, the get_vision function should be a part of the environment, add this into the Environment code! Let's do this!

renardyreveur commented 3 years ago

I think the most basic version of this is done by the latest commit: 4a639fdc45051408d041e6e9bc6c42426c527a45 !!

Now that we've got ourselves a basic setting, let's move onto the details!! :+1:

Closing the issue!