0

VIisuals I need help on how to access data in a matrix (vector of vector) in a expanding round around an origin point (0) and that follow the cells around it like in the visuals I included. It's to check the value of cells adjacent to the first one and then put the distance to the origin of the cell. Its for a labyrinth so I can't just use math to determine it since there might be some walls between them. Also I can't use the algorithm libraries

Can someone help me ? Thanks !

I tried using different method but none of them seems to be working since I still cant get some values. it's for a programming assignment so I need you guys help !

Quentin
  • 62,093
  • 7
  • 131
  • 191
  • Welcome to stackoverflow.com. Please take some time to read [the help pages](http://stackoverflow.com/help), especially the sections named ["What topics can I ask about here?"](http://stackoverflow.com/help/on-topic) and ["What types of questions should I avoid asking?"](http://stackoverflow.com/help/dont-ask). Also please take the [tour] and read about [ask] good questions. Lastly please read [this question checklist](https://codeblog.jonskeet.uk/2012/11/24/stack-overflow-question-checklist/). – Some programmer dude Dec 07 '22 at 10:25

0 Answers0