← Back to context

Comment by zabzonk

3 days ago

> anyone who likes puzzles on their phone

it's also available on windows and android - very good.

It's also available in HTML/js/wasm, so practically all networked devices:

https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/mine...

However, the minesweeper puzzle is the one that causes a big wart in the API, which part of me has wanted to refactor for years. (it's for the reason given in GP comment, the puzzle isn't generated until first click; it's the only one with this behavior and could be reworked to have the clicked area be a parameter to creation, but then it would have a slightly quirky main()-equivalent function.. IMO worth it for the cleaner API)

Simon's puzzles have overall been an inspiration, some good reading if you're into algorithms and applied graph theory and don't mind that it's in C.