News for hackers. Stuff that matters.
Re:Sokoban by RodgerTheGreat on Thursday August 29, 2024 @05:02PM (#41395243)
One of the most famous indie games riffing on Sokoban and playing with expectations for its gameplay is the delightful Baba Is You.[0]

If you're interested in trying to make your own variations on Sokoban-like games, PuzzleScript[1] is tailor-made for the task, with a fascinating declarative approach to describing game rules.

A Sokoban-like game can also be an excellent way to familiarize yourself with a new game engine or graphics toolkit. My own project, Decker, includes a very short Sokoban to demonstrate how one might make turn-based tile-oriented games.[2]

[0] https://www.hempuli.com/baba/

[1] https://www.puzzlescript.net

[2] http://beyondloom.com/decker/goofs/sokoban.html

Re:Sokoban by cbanek on Thursday August 29, 2024 @05:51PM (#41395657)
Any nethack players here? I love the sokoban levels, probably my favorite little sidequest.
Re:Sokoban by krapp on Thursday August 29, 2024 @05:05PM (#41395270)
Also see this video essay on Thinking Rabbit and Hiroyuki Imabayashi (the author of Sokoban):

https://www.youtube.com/watch?v=DvEfSP-sRXI

Re:Sokoban by quibono on Thursday August 29, 2024 @08:50PM (#41396816)
For the interested, proof that Sokoban is NP-hard.

https://www.archim.org.uk/eureka/archive/Eureka-54.pdf#page=...

Re:Sokoban by RodgerTheGreat on Thursday August 29, 2024 @11:16PM (#41397457)
It's a little worse than that (probably); it's also PSPACE-complete: https://www.semanticscholar.org/paper/Sokoban-is-PSPACE-comp...
Re:Sokoban by saghm on Thursday August 29, 2024 @10:42PM (#41397323)
Interesting...

Back in college when I was applying to places (I can't remember whether it was an internship or a full-time job), one place gave me an online challenge that from what I remember was basically identical to this game. They had provided a minimal API in JavaScript for interacting with the state, and I remember being embarrassed that the only solution I could come up with was brute force. I had forgotten about this until I saw the animation on the Wikipedia page just before reading this comment, but now I'm amused that my solution might have been optimal after all!

Re:Sokoban by arran-nz on Friday August 30, 2024 @03:17AM (#41398418)
Hey cool, I'm building a game inspired by Sokoban where you're tasked with destroying evidence and cleaning up any trace of crime - It's called Hazard Pay.

It started as a game jam entry for Ludum Dare, but after the great feedback I decided it was simple enough to go for a full release.

- https//smitner.studio/hazardpay

Re:Sokoban by jpl56 on Friday August 30, 2024 @11:14AM (#41401515)
I remember playing Sokoban on Mac around 1994. This version had something I never saw since then: when you clicked on a square, your character would move automatically to that square, provided there existed a path. This was VERY convenient and I miss it.
Re:Sokoban by RodgerTheGreat on Friday August 30, 2024 @11:39AM (#41401749)
I'm guessing this only applied to open spaces? Seems like applying that to spaces occupied by blocks would often imply ambiguous push direction.
Re:Sokoban by jpl56 on Friday September 13, 2024 @08:11AM (#41530433)
The algorithm wouldn't push any blocks, but just walk along the way to your destination, way faster than doing it by hand