puzzling puzzle

Blitz3D Forums/Blitz3D Programming/puzzling puzzle

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Treat adjacent similarly colored cells as a path and walk it recursively, trying each direction in turn. Keep a tally as you walk and make any necessary determinations when the call chain is complete.

I'd recommend, however, using an array of Types and not just a simple integer array. This way you can track housekeeping information as you walk the grid.