geek-ai / MAgent

A Platform for Many-Agent Reinforcement Learning
MIT License
1.68k stars 332 forks source link

Can i get the position of the agent in gridworld? #71

Closed lml519 closed 4 years ago

lml519 commented 4 years ago

Can i get the position of the agent in gridworld? For example, I want to get the a predator's position in two dimension tuple.

ZhaoMingYang-tju commented 4 years ago

hello, do you resolve this problem? please tell me, thank you..

lml519 commented 4 years ago

hello, do you resolve this problem? please tell me, thank you..

Im so sorry to tell u this problem has not been solved. I will be appreciate if u can give me a hand.

merrymercy commented 4 years ago

https://github.com/geek-ai/MAgent/blob/84f0dd090fc7cabaf264eaeda961e4176bc003d7/python/magent/gridworld.py#L361-L367