Returning all "positions" of a list

Posted by Daymor on Stack Overflow See other posts from Stack Overflow or by Daymor
Published on 2011-01-18T02:22:31Z Indexed on 2011/01/18 2:53 UTC
Read the original article Hit count: 166

Filed under:
|
|
|
|

I Have a list with "a" and "b" and the "b"'s are somewhat of a path and "a"'s are walls. Im writing a program to make a graph of all the possible moves. I got the code running to check the first "b" for possible moves, but i have NO Idea how im going to find all "b"'s , even less check them all without repeating.

Major issue im having is getting the tuple coordinates of the "b"'s out of the list.

Any pointers/tips?

© Stack Overflow or respective owner

Related posts about python

Related posts about list