frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Computer Scientists Figure Out How to Prove Lies

https://www.quantamagazine.org/computer-scientists-figure-out-how-to-prove-lies-20250709/
80•nsoonhui•2h ago•34 comments

Magic .env files built for sharing: Human-first, AI-friendly

https://varlock.dev/
16•mooreds•1h ago•2 comments

Optimizing a Math Expression Parser in Rust

https://rpallas.xyz/math-parser/
54•serial_dev•3h ago•24 comments

Show HN: Typeform was too expensive so I built my own forms

https://www.ikiform.com/
45•preetsuthar17•3h ago•37 comments

Thunderbird 140 “Eclipse”

https://blog.thunderbird.net/2025/07/welcome-to-thunderbird-140-eclipse/
130•TangerineDream•2d ago•71 comments

Kite – News App by Kagi

https://kite.kagi.com/
74•tigroferoce•4h ago•29 comments

At last, a use case for AI agents with sky-high ROI: Stealing crypto

https://www.theregister.com/2025/07/10/ai_agents_automatically_steal_cryptocurrency/
30•rntn•1h ago•4 comments

MCP-B: A Protocol for AI Browser Automation

https://mcp-b.ai/
256•bustodisgusto•13h ago•128 comments

Tree Borrows

https://plf.inf.ethz.ch/research/pldi25-tree-borrows.html
516•zdw•21h ago•132 comments

A Typology of Canadianisms

https://dchp.arts.ubc.ca/how-to-use
175•gnabgib•14h ago•179 comments

Radiocarbon dating reveals Rapa Nui not as isolated as previously thought

https://phys.org/news/2025-06-radiocarbon-dating-reveals-rapa-nui.html
17•wglb•2d ago•0 comments

Show HN: MCP server for searching and downloading documents from Anna's Archive

https://github.com/iosifache/annas-mcp
173•iosifache•15h ago•54 comments

Show HN: FlopperZiro – A DIY open-source Flipper Zero clone

https://github.com/lraton/FlopperZiro
299•iraton•18h ago•61 comments

Biomni: A General-Purpose Biomedical AI Agent

https://github.com/snap-stanford/Biomni
193•GavCo•17h ago•29 comments

The Origin of the Research University

https://asteriskmag.com/issues/10/the-origin-of-the-research-university
91•Petiver•3d ago•4 comments

The jank programming language

https://jank-lang.org/
337•akkad33•3d ago•93 comments

Solar power has begun to transform the world’s energy system

https://www.newyorker.com/news/annals-of-a-warming-planet/46-billion-years-on-the-sun-is-having-a-moment
191•dmazin•23h ago•298 comments

Browser extensions turn nearly 1M browsers into website-scraping bots

https://arstechnica.com/security/2025/07/browser-extensions-turn-nearly-1-million-browsers-into-website-scraping-bots/
6•chha•1h ago•1 comments

A fast 3D collision detection algorithm

https://cairno.substack.com/p/improvements-to-the-separating-axis
236•OlympicMarmoto•22h ago•27 comments

Author of William the Conqueror's 'Medieval Big Data' Project Revealed

https://www.ox.ac.uk/news/2025-07-02-author-william-conqueror-s-medieval-big-data-project-revealed
6•zeristor•3d ago•0 comments

Show HN: Petrichor – a free, open-source, offline music player for macOS

https://github.com/kushalpandya/Petrichor
130•kushalpandya•14h ago•60 comments

Show HN: BreakerMachines – Modern Circuit Breaker for Rails with Async Support

https://github.com/seuros/breaker_machines
31•seuros•4d ago•15 comments

Bootstrapping a side project into a profitable seven-figure business

https://projectionlab.com/blog/we-reached-1m-arr-with-zero-funding
860•jonkuipers•2d ago•230 comments

Grok 4 Launch [video]

https://twitter.com/xai/status/1943158495588815072
243•meetpateltech•8h ago•194 comments

Archaeologists unveil 3,500-year-old city in Peru

https://www.bbc.co.uk/news/articles/c07dmx38kyeo
161•neversaydie•3d ago•60 comments

Evaluating the Effectiveness of Memory Safety Sanitizers

https://www.computer.org/csdl/proceedings-article/sp/2025/223600a088/21TfesaEHTy
29•signa11•2d ago•9 comments

Xenharmlib: A music theory library that supports non-western harmonic systems

https://xenharmlib.readthedocs.io/en/latest/
179•retooth•1d ago•18 comments

Linda Yaccarino is leaving X

https://www.nytimes.com/2025/07/09/technology/linda-yaccarino-x-steps-down.html
472•donohoe•21h ago•822 comments

Configuring Split Horizon DNS with Pi-Hole and Tailscale

https://www.bentasker.co.uk/posts/blog/general/configuring-pihole-to-serve-different-records-to-different-clients.html
104•gm678•19h ago•29 comments

Ruby 3.4 frozen string literals: What Rails developers need to know

https://www.prateekcodes.dev/ruby-34-frozen-string-literals-rails-upgrade-guide/
233•thomas_witt•4d ago•114 comments
Open in hackernews

Making Explainable Minesweeper

https://sublevelgames.github.io/blogs/2025-07-06-making-explainable-minesweeper/
39•greentec•3d ago

Comments

greentec•3d ago
Hello Hacker News!

Thank you for your interest in my previous post. This time, I've written a blog post about the game and the process of creating it.

In the original Minesweeper, there are inevitable 50/50 moments where you have to rely on luck. In the game I created, 'Explainable Minesweeper,' I eliminated these guessing situations. However, I also prevented the maps from becoming too easy! How? By using logical deduction, you can solve puzzles that initially appear to be luck-based. The blog post explains the process in more detail.

shkkmo•14h ago
The exclusion of patterns that involve more than 2 numbers is a pretty huge caveat that should be mentioned earlier and more clearly. When I was playing a lot of minesweeper, larger levels tended to require solving larger patterns most of the time. If you exclude those solutions, your estimate of how often you are required to guess is going to be pretty inaccurate.
npinsker•14h ago
For what it's worth, the way 14MV does hints is probably by just throwing the board into Z3 (https://github.com/Z3Prover/z3) or some other constraint solver. Microsoft has already done all the hard work for you.
jsnell•13h ago
I doubt it. A guaranteed-solveable minesweeper scenario isn't just about the global board setup, but about what information is available when, and what order the solution is gone through.

Bombe[0] is to my mind the definitive exploration of this concept. The tagline is "Minesweeper, but you only solve each situation once", which you do by writing these kinds of deduction rules with a fairly painful visual programming language. (You can't write an invalid rule: the game will detect the logic error and present you with a counter-example.)

You then let the computer churn through it's list of 100k scenarios idle-game style, until you bump into a board that can't be solved with the rules you provided, and you have to figure out what new rules to write.

As the game progresses, you'll unlock ways of parameterizing the rules in various ways, as well as various variant rules.

[0] https://store.steampowered.com/app/2262930/Bombe/

npinsker•12h ago
You're right, I misspoke a little bit -- 14MV is able to do this because (unlike this game) it does not reveal all givens to you at the beginning.
GLdRH•13h ago
In minesweeper online there's also a "no guessing" mode which, in my opinion, is much more interesting than the normal mode. It means that if you guess in a situation where you could have deduced the mines, you always get a mine. Conversely, if you really are in a guessing situation, you will never get a mine. I'm pretty sure the game calculates the unknown part of the map after each click anew.
Bimos•4h ago
I thought no guessing mode means the map is generated in such way that guessing is not needed to solve the whole board? (To those who didn't know the mode, it also forces you a starting point)

As an experiment, I tried clicking on a random position after clicking the starting point. And it is possible to that the position is safe. So I don't think the map in no guessing mode is dynamic.

Also in the help section: "In this mode, a starting position is provided, and you never need to guess to complete the board."

tylervigen•38m ago
How would the game know you are guessing?
jsnell•14m ago
By considering the bomb location notations you have made on the board.

Are they all valid, and do they prove that the location you're clicking on is empty? Then you're not guessing.

Are they invalid, or do they not prove that the location is empty? Then you're making a guess that should fail.

Are they valid, comprehensive (there are no more bombs you could mark), and prove that all you have left are random choices? Then clicking is you indicating that you've found all there is to find for now, not a "guess".

MostlyStable•13h ago
Simon Tatham's Puzzles app has a minesweeper version that both A) generates on first click so you are guaranteed to never hit a mine on the first click and B) every board is 100% solvable with no need to guess. I have no idea what method it uses. I believe that _every_ puzzle in it is 100% solvable with no need to guess. It's also add free and completely local. It's a great app for anyone who likes puzzles on their phone.
mtlmtlmtlmtl•12h ago
I looked at the code for this once. It's sort of a hack. It generates a random puzzle, tries to solve it with a deterministic backtracking(IIRC) solver that detects situations where it's stuck. If it is stuck, it shifts some mines around in the place where the solver got stuck, according to some heuristics, and keeps solving. It keeps doing this until the entire puzzle has been solved, verifying that the puzzle can be solved without any guesswork.

I will second the recommendation. As someone who's wasted too many hours on minesweeper, it radically changes the game. Because I know there's a logical solution, I'm able to find patterns that I never found in the original, because I'd often assume it was just one of those guesswork situations. It's similar to how chess puzzles are easier than an equivalent position during a game. Because you know there's a neat solution, you're more willing to put in the legwork of searching for it. Learned a lot about the game simply by playing Simon's version.

mcmoor•10h ago
I tried some no-guess variants but somehow there's a kind of sterile feeling to it. For some reason it makes it more boring compared to vanilla variant. It of course excels when I'm getting frustrated at guesses and 50/50, but otherwise I play the normal minesweeper more.
badmintonbaseba•2h ago
It's an entirely a different metagame if the goal is to improve your personal best time over multiple games within a given time frame. Once you get good enough with the deterministic reasoning, the game transforms into probabilistic strategies for time saves in both the vanilla and the guaranteed solvable game, and at that point the two games are very different.

For the vanilla game the guesses become integral part of the game that you can strategize around. There are guesses where some squares are less likely to contain mines than others. You can also try to uncover guesses as early as possible in a game, so you don't waste too much time on a game that is doomed to fail.

anewhnaccount2•8h ago
I wouldn't describe it as a hack necessarily. This is called rejection sampling, and it's just fine as long as the rejection rate is low enough.
zabzonk•12h ago
> anyone who likes puzzles on their phone

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

kevindamm•12h ago
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.

gavinsyancey•9h ago
I made something like this a while back: https://github.com/g-rocket/minesweeper
eviks•8h ago
Unfortunately it doesn't have proper controls and cell sizes (doesn't expand to the screen, so remain small), so it's easy to mistap on a wrong cell or mistap instead of mishold. Basically, controls aren't optimized for a touch screen
joshka•11h ago
xyzzy shift+Enter... ;P
nojs•11h ago
The first example is not ambiguous. You can solve it starting at the bottom left
red369•11h ago
Do you mean the first screenshot of Windows Minesweeper (the left half of ems02.png)?

Could you explain how? I haven't played a huge amount of Minesweeper, but I can't see how that can be solved without risk/luck.

nojs•11h ago
On the left side, the 1 at the bottom means that the third from the bottom must be a mine (since the 2 can't point to the bottom two). The 1 touching that mine then excludes a bunch more, and that's sufficient to solve the rest.
red369•11h ago
Thanks - I finally saw it just as you replied. I agree that it looks like that mine layout is the only possible one which satisfies the vertical 1,2,1 boxes. I need to play more :)
greentec•10h ago
Thank you. I didn't see that!
Unearned5161•11h ago
Nice article, I wanted to point out though that your example board at the beginning has no such ambiguities or 50/50's. Here's a recreation of it so you can see for yourself, if you open it up from the bottom left as you did, the 1 2 1 leads to the board being solved rather quickly:

https://agustinfitipaldi.com/minesweeper?seed=eyJ3aWR0aCI6OS...

greentec•10h ago
Yes, that's right. I'll have to update my blog with additional information about this. Thank you!
badmintonbaseba•2h ago
BTW, you can also start from the top right with the two 1s. One of the rightmost two cells contains a mine, so the 3rd from the right can't.
rtpg•9h ago
Many many years ago I remember playing a free minesweeper that had, among other things, hexagonal maps as an option, but the big thing was that it guaranteed that you would never need to guess. You could always figure out the answer, and I believe there was a mode where if you clicked in a way where you couldn't have deduced the answer it would put a mine in there to punish you.

Anyone know what minesweeper software I'm thinking of?

bigstrat2003•8h ago
Apart from the mine theme (and punishing you by putting in extra mines), that sounds like Hexcells. Very reminiscent of minesweeper, and you never have to guess.
rtpg•7h ago
what I'm thinking of is, I believe, much older. I remember playing it before 2010 at least based on the machine I was playing it on. And it was distinctly "windows" styled: it looked like windows minesweeper!
Doxin•4h ago
I don't know the name, but I distinctly recall a minesweeper clone that had hexagonal maps, triangular maps, and a bunch of other weird tilings.
rtpg•4h ago
Yeah I think the one I played also had triangular maps.
yedpodtrzitko•6h ago
Recently I have discovered Tametsi ( https://store.steampowered.com/app/709920 ), which is something like Minesweeper on steroids and some advanced levels can't be solved without advanced reasoning. If Minesweeper feels too easy/boring, this might be the right challenge for you.
elemeno•5h ago
If you’re interested in this you might like the game Bombe (https://store.steampowered.com/app/2262930/Bombe/) - a game about defining rules to let the computer solve various minesweeper (and more advanced variants) puzzles.

It’s a bit mind bending as you’re never actually solving the puzzles yourself, but creating sets of rules to solves whole classes of potential minesweeper patterns. It definitely solves that pleasurable puzzle solving itch!