Alien message (pipe dream)
in
Programming Questions
•
2 years ago
Hi
I've been playing around with some of the code in Flash Math(s) Creativity. One of the sections is called Alien message; my processing version gave the sample result here. I have the tiles generated at random from a short list of variations. I'd like to extend it so that it you click on one of the bulbs at the edge, the whole path from there is highlighted/filled in. Though I put pipe dream in the title, I'm not really thinking of incremental (flowing) fill - yet.
I can't get my head around how to approach it!
Do I keep a record of each tile and its entrances and exits? Say, "tile A has entrance at north joining to east, and deadends at south and west". How do I deal with the tile where the route splits? How do I deal with the tile that has a pair of entrances and exits?
How do I keep track of where in the grid the route has got to?
I've deliberately not included code as it's methods that I'd like help with; a good method might necessitate the rewriting of the code!
Thanks
string
1