Word Search II, three ways

Try:
CALL
1 / 1

Code

The highlighted line runs next. The pill shows the live values in the running call.

Cost

Work done so far, and how the three solutions compare

Board and words

Paths move up, down, left or right, never reusing a cell

Keyboard: ← → step, Space play or pause. Board rows separated by commas (or paste the JSON grid), up to 4×4; up to 6 distinct words of 1–7 letters. Directions are tried in the code’s order: down, up, right, left. Solution 2 returns a set, so the real output order can differ between languages.