Conversation
Need to simulate click and if possible the circle highlighting the square.
b4f5984 to
b7ea49b
Compare
|
Looks very good! I'm not sure why the piece is preselected on the website. Since we're not doing that, I think we can just add the circle around the hinted piece. But not showing the possible destinations. It just adds noise in my opinion. If you're playing puzzle it means you know where the piece can move to ;) |
|
Thanks for the review @veloce! Just updated to only circle the square the piece to move is on. |
3f8e99d to
55b14da
Compare
|
Whoops, accidentally closed the PR. |
There was a problem hiding this comment.
Looks good except a small comment.
Same as with the rated feature, we should add a widget test here. Since we have already the "view solution" puzzle test it should be easy to adapt from it.
The new tests should check:
- that the right square is highlighted
- that the solution is marked as
not ratedif the hint was shown, even thoughratedis enabled in preferences - that the hint shown bool is correctly reset in the next puzzle (tested by solving another puzzle without hint and verifying that it is rated).
| }); | ||
| } | ||
|
|
||
| NormalMove solutionMove() { |
There was a problem hiding this comment.
This can be private. And also a getter instead of a method.
Also I'd name it nextSolutionMove since it depends on the current move index.
|
Per Veloces last comment if you have it on rated and use a hint do future puzzles stay rated or does it change it? |
9dba45e to
0961f63
Compare
0961f63 to
b73efec
Compare
Future puzzles will continue to be rated. I tested that manually and I added that as a part of our test case. Right now I think the only thing left is to check that the correct square is being circled after the hint button is pressed which is a bit tricky since I don't see a |
Still unable to check if hint is set on the right square
b73efec to
7417bf5
Compare
Right I didn't think about that. I guess we can skip that test for now, the tests regarding rating were much more important. |
Add Puzzle Hints
For #1158
Based on #1224
Merge after #1445
Changes
BoardTablewidget.Screenshots / Recordings
puzzle.hint.-.only.circle.piece.mp4