Checkboxland
bryanbraun.com
bryanbraun.com
This is good too.
Instead I spent a few minutes trying to navigate my bedroom by checkbox camera. It didn't go well, but kudos to the author just the same.
With that last shout and a wild look in his eye he ran madly out of the lab, hurrying back to his office.
Just making the cells change colour as a mouse was clicked and dragged over the cells (to draw) was very laggy. After which I switched to canvas which worked really well.
At the time I was a very inexperienced developer but looking back now it was very obvious a table with cell approach wouldn't be performant.
could be used as a captcha style roadblock!
https://www.bryanbraun.com/2020/06/06/checkboxland/
Must be one of my favorite projects in a long while. Such a mad/brilliant idea, and the aestethic is remarkable for such an odd thing as a checkbox.
Many thanks to the poster.
So except if you limit the game to having no cells with more then one neighbors with a mine, it won't work.
• All squares start off as unchecked boxes.
• Marked squares are partially-checked boxes.
• Revealed bombs (e.g. player lost, show the board) are fully checked.
• Uncovered squares are deleted, and a number is placed in the space as simple text.
You could absolutely argue the last point is cheating, but, meh, I feel it's within the spirit of the idea.
(Undecided on whether to use disabled checkboxes to mark the perimeter of the playing field; I'd have to try it and see what felt right.)
<input type="checkbox" />
<input type="checkbox" checked />
<input type="checkbox" indeterminate />
<input type="checkbox" disabled />
<input type="checkbox" disabled checked />
<input type="checkbox" disabled indeterminate />