Hi Guys
execellent algorythm Bplus!
Hi Cobalt about the debugging of your algorythm
I have tryed to modify to my use your code to see where it makes the glicth but it is not necessary!. As you have already pointed out the issue is about to catch the right MATCHED tiles!
You can notice that
1. only after going to right at recursive way... in fact you loose the UP or the DOWN tile founded
so the issue is in the part of code that mark as MATCHED the tile!
IF Count%%
>= Min_Match
THEN Board
(StartTileX%%
, StartTileY%%
).Matched
= TRUE
it is a single line of code, but why does it loose the UP and DOWN tile after a RIGHT tile in n matched tiles?
We can note that DEPTH%% and COUNT%% don't have always the same value, can this make the difference?