Re: Randomly generated sokoban

74 views
Skip to first unread message
Message has been deleted

bananamath

unread,
Sep 11, 2024, 12:02:35 PM9/11/24
to Ivanov Tv, PuzzleScript
Really cool idea and execution!

On Wed, Sep 11, 2024 at 7:58 AM Ivanov Tv <ivano...@gmail.com> wrote:
Wrote lil algoritm that generates random sokoban level.
Generated level is guaranteed to be solvable.

Algorithm is simple. First we spawn lots of solved boxes and reversed player. Reversed player walks around and pulls boxes. Then after some number of turns we turn reversed player into normal player, turn all squares that were not visited and all boxes that were not pulled into walls.

Algorithm may generate tiny trivial level and may generate giant screen full of boxes.


Gif:
Без имени.gif

Gif appears to be slower than the actual game. Actual game works faster.

--
You received this message because you are subscribed to the Google Groups "PuzzleScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puzzlescript...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/puzzlescript/501ec2e1-8180-4ff3-accf-47d6eed4413cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages