keiichiw / a-puzzle-a-day-solver

A-Puzzle-A-Day solver

Home Page:https://keiichiw.github.io/a-puzzle-a-day-solver/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hint system

EhsanKia opened this issue · comments

I agree that getting the solution can ruin the fun of the game, but sometimes you've been stuck for a long time and it can get frustrating. It would be nice to have something in between getting the full solution and nothing at all.

I propose a second button, called "Hint", which places the solution pieces one by one. That way I can maybe get a single piece hint, then try solving the rest myself.

Code wise, I see you get the pieces in numbered form. Each press of the button would just go through the list and render the next number. Although that means the first hint will always be the same piece. Maybe it would be nicer to instead have a shuffled list of numbers and use that to get a random order every time.