Find neighbours of a postion in a 2D grid with a python dictionay efficiently

后端 未结 0 1081
醉话见心
醉话见心 2020-12-05 10:49

I have a code in which I track and add objects in a 2D grid. I start a dictionary which contains {(x_pos,y_pos):object,...} At some point I need to ask if the (8) first neig

相关标签:
回答
  • 消灭零回复
提交回复
热议问题