Feed aggregator

Arc and Mutex in Rust

Hacker News - 2 hours 52 min ago
Categories: Hacker News

Nibbi

Hacker News - 2 hours 53 min ago

Article URL: https://www.temeculadsp.com/nibbi

Comments URL: https://news.ycombinator.com/item?id=49917696

Points: 1

# Comments: 0

Categories: Hacker News

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

Hacker News - 3 hours 8 min 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

Comments URL: https://news.ycombinator.com/item?id=49917607

Points: 1

# Comments: 0

Categories: Hacker News

Tokens Written, Tokens Read

Hacker News - 3 hours 8 min ago

Article URL: https://hci.prof/blog/

Comments URL: https://news.ycombinator.com/item?id=49917604

Points: 1

# Comments: 0

Categories: Hacker News

"Revize., The Government Website Expert"

Hacker News - Wed, 09/30/2026 - 11:51pm

Article URL: https://www.revize.com/projects/

Comments URL: https://news.ycombinator.com/item?id=49917529

Points: 2

# Comments: 1

Categories: Hacker News

Pages