From e0928f0817b55a4e1f1e181b6e6ec62d3e326985 Mon Sep 17 00:00:00 2001 From: Klemen K Date: Sat, 4 Jan 2025 01:14:15 +0100 Subject: [PATCH] show puzzle hint when square is 0 --- ui/puzzle/src/autoShape.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/puzzle/src/autoShape.ts b/ui/puzzle/src/autoShape.ts index 28f209fc732bd..64844d4abf5a9 100644 --- a/ui/puzzle/src/autoShape.ts +++ b/ui/puzzle/src/autoShape.ts @@ -72,7 +72,7 @@ export default function (opts: Opts): DrawShape[] { } else shapes = shapes.concat(makeAutoShapesFromUci(opposite(color), n.threat.pvs[0].moves[0], 'red')); } const feedback = feedbackAnnotation(n); - const hint = opts.hint && { orig: makeSquare(opts.hint), brush: 'green' }; + const hint = opts.hint !== undefined ? { orig: makeSquare(opts.hint), brush: 'green' } : undefined; return [ ...shapes, ...annotationShapes(n),