c# - Hint algorithm problems in a Bejeweled clone -
i've got slight issue hint algorithm bejeweled clone. right now, following code produces 'hint' @ top left of board every time hit h key (the key showing hint). public bool aretheremoves(gem[,] gem2) { hintgems.clear(); return (aretheremovesdown(gem2) && aretheremovesright(gem2)); } public bool aretheremovesright(gem[,] gem2) { hintgems.clear(); (int x = 0; x < gem2.getlength(0) - 1; x++) { (int y = 0; y < gem2.getlength(1); y++) { gem[,] gems3 = new gem[gem2.getlength(0), gem2.getlength(1)]; array.copy(gem2, gems3, gem2.length); swapgemscheck(x, y, x + 1, y, ref gems3); if (checkmatches(gems3, 2) || aretherespecialgems(gems3)) { hintgems.add(gems3[x, y]); return true; } } } return false; } public bool aretheremovesdown(gem[,] gem2) { hintgems.clear(); (int y = 0; y < gem2.getlength(1) - 1;...