reveal parse on entry?

6 views
Skip to first unread message

Andy Yingst

unread,
Jul 23, 2026, 6:35:06 PM (2 days ago) Jul 23
to Exolve-...@googlegroups.com
Heya all--
  Does anyone know if there's a way to set a puzzle to automatically reveal the parse for a clue when its correct answer is entered in the grid?
-Andy

Viresh Ratnakar

unread,
Jul 23, 2026, 11:33:19 PM (2 days ago) Jul 23
to Andy Yingst, Exolve-...@googlegroups.com
Hi Andy,

This is doable (I'm hopeful that almost everything is doable in Exolve, with just a bit of coding :-)).

I this case, within the script tag, you can add something like the piece of code pasted below. Please let me know if you run into any issues or need some more tweaks.

Viresh

let myPuz;
function revealSolvedClues() {
  if (!myPuz) return;
  for (const ci in myPuz.clues) {
    const cells = myPuz.getAllCells(ci);
    let allCorrect = true;
    for (const cell of cells) {
      const gridCell = myPuz.grid[cell[0]][cell[1]];
      if (gridCell.currLetter != gridCell.solution) {
        allCorrect = false;
        break;
      }
    }
    if (allCorrect) {
      myPuz.revealClueAnno(ci);
    }
  }
}
function customizeExolve(puz) {
  myPuz = puz;
  puz.updateAndSaveState = (function() {
    var uass = puz.updateAndSaveState;
    return function() {
      revealSolvedClues();
      uass.apply(this);
    };
  })();
  revealSolvedClues();
}




--
You received this message because you are subscribed to the Google Groups "Exolve-Exet-Etc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exolve-exet-e...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/exolve-exet-etc/CAK292hn_hY4ZfhwQsmvq_2ccmKos-sCdZitRVKgm99Gaze1VqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages