frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: A 311 byte Klotski solver in C++

https://github.com/Dream-World-Coder/depuzzled
1•midnight_dream•42m ago
Hi all! I made a 311 byte Klotski solver in C++

So back when I first got to use a mobile phone in 2012 I used to play a lot of puzzle games. These were notoriously hard to solve (on high levels), and I always wondered how are these created, how do they find the minimum moves, how do they know its even minimal.

Now after being in a CS major for over 3 years, I finally understand these systems fairly. So I decided to make a klotski solver.

I wanted to make it fun so I stored the whole game board in an integer (uint64_t), as I like integers more than vectors. And then I got the urge to minify the engine to the max extent I could, so shrunk it down to 311 bytes from ~3.5 KB. The engine is only the searching part though.

The solver is a BFS that explores every reachable position. For the classic start it finds the best solution in 116 moves, after exploring all 25,955 reachable states in about 2-4 ms.

Here's the repo; any feedback is welcomed : ) https://github.com/Dream-World-Coder/depuzzled

Researcher Discovers Experimental Evidence of New Type of Magnetism

https://www.ucf.edu/news/ucf-researcher-discovers-experimental-evidence-of-new-type-of-magnetism/
1•geox•1m ago•0 comments

Continual Outreach – A self refining customer discovery process

https://github.com/giga-james/continual-outreach
1•kunggaochicken•6m ago•1 comments

Blind constraints, not blind spots

https://gmays.com/blind-constraints-not-blind-spots/
1•gmays•9m ago•0 comments

Breathing the Compiler

https://www.mattkeeter.com/blog/2024-07-12-interpreter/
1•andsoitis•12m ago•0 comments

RIP Facebook

https://senecaeffect.substack.com/p/rip-facebook
1•Beijinger•12m ago•1 comments

Ao: Homoiconic Solid Modeling [pdf]

https://www.mattkeeter.com/research/ao_poster.pdf
1•andsoitis•14m ago•0 comments

Fuck Android Developer Verification Program

https://twitter.com/0xcrypto/status/2105515822643114182
2•0xcrypto•15m ago•0 comments

Chinese batteries potentially 'booby-trapped' to 'plode

https://www.youtube.com/watch?v=boI_WUtForo
1•vaxman•18m ago•0 comments

Fine tuning STT models to help with my Lisp

https://vivekkairi.com/fine-tuning-stt-models-to-my-speech-part-2/
2•vivekkairi•20m ago•0 comments

Why do you need freedom?

https://geohot.github.io//blog/jekyll/update/2026/10/01/why-do-you-need-freedom.html
3•smilelamp•25m ago•2 comments

Arc and Mutex in Rust

https://itsallaboutthebit.com/arc-mutex/
1•auraham•26m ago•0 comments

Arc<Mutex<_>> in Rust

https://aeshirey.github.io/code/2020/12/23/arc-mutex-in-rust.html
1•auraham•27m ago•0 comments

Nibbi: The Chompi Club as a VST

https://www.temeculadsp.com/nibbi
1•johnwheeler•27m ago•1 comments

AI research is dead, long live AI

https://kylrth.com/post/ai-research-is-dead/
1•dddddaviddddd•28m ago•0 comments

Systems: Sales Coaching Platform Which Changes Behaviors

https://10systems.xyz
1•Assane_D•32m ago•0 comments

Tennessee inmate still alive after being administered two lethal injections

https://www.nbcnews.com/news/us-news/ahead-rare-execution-lone-woman-tennessee-death-row-says-pea...
3•techolic•34m ago•1 comments

Mortal Knesset: Twelve contenders. One seat of power

https://mortalknesset.liad0205.workers.dev/
1•escargot•34m ago•0 comments

Can anyone promote my extension on 50/50 profit sharing basis?

https://chromewebstore.google.com/detail/digital-shield-tab-suspen/pkonihncnkmbejhhjadaognganhinnhc
1•digitaShida•34m ago•1 comments

PSSA: A non-transformer language model written from scratch in Rust

https://ai-news-site-cyan.vercel.app/articles/2026-09-30-pssa-a-non-transformer-language-model-wr...
1•qrify_app•36m ago•0 comments

Thoughts on AI

https://medium.com/@dhillonravi1983/thoughts-on-ai-1e1400f9fe4f
1•dhillonrav1983•38m ago•0 comments

Gboard Conveyor Belt Version [video]

https://www.youtube.com/watch?v=DAn34l_YrUM
1•caseyross•38m ago•0 comments

Lights, Camera, Attack: Exploiting Temporal HDR Fusion with Pulsed Light

https://arxiv.org/abs/2609.37742
1•sbulaev•41m ago•0 comments

Show HN: A 311 byte Klotski solver in C++

https://github.com/Dream-World-Coder/depuzzled
1•midnight_dream•42m ago•0 comments

Tokens Written, Tokens Read

https://hci.prof/blog/
1•hciprof•42m ago•0 comments

When Did You Last Write Code?

https://timleland.com/when-did-you-last-write-code/
3•TimLeland•49m ago•0 comments

What is going on with ceiling fans

https://mcmansionhell.com/post/829127919552151552/what-is-going-on-with-ceiling-fans
3•colinprince•56m ago•0 comments

What managing emergencies at Burning Man teaches about tech incident management

https://greatcircle.com/blog/2026/09/29/burning-man-incident-management/
3•ea016•56m ago•0 comments

Google Grapples with Employee Skepticism About New Gemini Model

https://finance.yahoo.com/technology/ai/articles/google-grapples-employee-skepticism-gemini-19524...
2•theanonymousone•56m ago•0 comments

"Revize., The Government Website Expert"

https://www.revize.com/projects/
2•nycdatasci•57m ago•1 comments

The 101 Plays Itself

https://jayjudah.com/101/
3•gregsadetsky•1h ago•0 comments