Show HN: Minesweeper on a chess board with chess pieces as mines
rearrange the chess pieces so that the number of pieces threatening each square matches the large number in that square? pieces move freely
https://chedoku.com/#dailypuzzle
https://chedoku.com/#dailypuzzle
23 comments
[ 2.3 ms ] story [ 61.7 ms ] threadBack to your question. There are two types of solutions: 1- Perfect solution, you get a green notification when you find the solution, in which other squares with no number have zero threats. Pressing the 'solution' button reveal the perfect solution 2- Imperfect solution, you get a yellow notification when you find one, in which other squares with no number may be under one or more threats.
As a simple example, for the puzzle below placing pawn on c2 is an imperfect solution but placing it on a2 is the perfect solution.
https://chedoku.com/#gid=3&d=1&
Is perfect solution in my terminology is what you mean by efficiency solution?
edit: i meant if you (r13: ebbx naq xavtug ba oynpx'f xvat'f ovfubc naq xavtug cbfvgvbaf) you only need to use two of the three provided
joke aside, there can be: 1- any arbitrary number of pieces on the board 2- pawns in the first and last rows 3- missing king 4- missing opposite color pieces
2- Imperfect solution, you get a yellow notification when you find one, in which other squares with no number may be under one or more threats.
A bit confusing so for now I try not to be strict about imperfect solutions.
One UI suggestion is to use a diverging color palette for the larger numbers so there are different hues for too many versus too few attackers.