
Autosokoban
I created an algorithm to automatically generate sokoban problems of increasing difficulty. Check it out! The first levels are trivial, but somewhere around level 10, perhaps 15, you will find that the puzzles are becoming quite challenging.
Level: 0Moves: 0 |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
These levels were generated using random seed 865300179.
Use the following URL to get back to this particular puzzle:
I would like to thank Murase-san, Matsubara-san and Hiraga-san who approached this subject in an academic paper called Automatic Making of Sokoban Problems. In general, my algorithm is fundamentally different than theirs, but the first step (generating rooms) is performed as described in the paper.
By the way, I should warn you that this game is highly addictive. Arm yourself with plenty of coffee and chip music.
Posted Tuesday 24-Jun-2008 18:03
Discuss this page
Disclaimer: I am not responsible for what people (other than myself) write in the forums. Please report any abuse, such as insults, slander, spam and illegal material, and I will take appropriate actions. Don't feed the trolls.
Jag tar inget ansvar för det som skrivs i forumet, förutom mina egna inlägg. Vänligen rapportera alla inlägg som bryter mot reglerna, så ska jag se vad jag kan göra. Som regelbrott räknas till exempel förolämpningar, förtal, spam och olagligt material. Mata inte trålarna.
Tue 8-Jul-2008 02:15
Tue 5-Aug-2008 17:05
Mon 8-Sep-2008 13:28
How fast is the solving algorithm, and how does it compare to that in the original paper which inspired you, and how quickly can it (your own algorithm) solve f.ex the typical level 100's on a given system?
Linus Åkesson
Tue 16-Sep-2008 22:02
How fast is the solving algorithm, and how does it compare to that in the original paper which inspired you, and how quickly can it (your own algorithm) solve f.ex the typical level 100's on a given system?
No problem. =)
The solution is a bi-product of the puzzle generation algorithm, so it would take no additional time.
Fri 1-May-2009 00:45
very nice job! i love this game. levels are getting more and more tricky, but you never know if the next one is easy or not. :) is there any way to install the programm on a cell phone? how complex is the algorithm to generate the levels?
Linus Åkesson
Mon 4-May-2009 20:10
very nice job! i love this game. levels are getting more and more tricky, but you never know if the next one is easy or not. :) is there any way to install the programm on a cell phone? how complex is the algorithm to generate the levels?
Thanks! The algorithm needs a lot of RAM, so it's probably not feasible for a midlet. Some day, when I get the time, I'll publish the source code and a description of the algorithm.
Thu 7-May-2009 19:43
lft wrote:
very nice job! i love this game. levels are getting more and more tricky, but you never know if the next one is easy or not. :) is there any way to install the programm on a cell phone? how complex is the algorithm to generate the levels?
Thanks! The algorithm needs a lot of RAM, so it's probably not feasible for a midlet. Some day, when I get the time, I'll publish the source code and a description of the algorithm.
Oh, super! I am very much interested in the source code. To avoid the RAM-problem, one could split the programm into a "level-creator", that calculates for example level 1 to 100 of a seed und saves it in a small file, which could be read by the second program running on the cell-phone.
Greetings, the anonymous writer =)
Sun 25-Jul-2010 04:01
However for the life of me I can't solve
http://www.linusakesson.net/games/autosokoban/?v=1&seed=722222541&level=6
Bug, or am I just not doing it right?
Sun 25-Jul-2010 13:41
http://www.linusakesson.net/games/autosokoban/?v=1&seed=1329696099&level=100
Sun 25-Jul-2010 14:17
However for the life of me I can't solve
http://www.linusakesson.net/games/autosokoban/?v=1&seed=722222541&level=6
Bug, or am I just not doing it right?
I think this one is realy hard. I was to give up. But there is a soluten. First step is to push the bolder up to you up, then open the way down. Then you can do the rest.
Thu 19-Aug-2010 22:31
Thu 19-Aug-2010 22:37
har har just kidding its solvable just really strange :B
Sat 16-Oct-2010 21:39
I found
http://www.linusakesson.net/games/autosokoban/?v=1&seed=722222541&level=768
really easy, but for
http://www.linusakesson.net/games/autosokoban/?v=1&seed=722222541&level=6
I needed several tries.
Sat 18-Jun-2011 16:47
However for the life of me I can't solve
http://www.linusakesson.net/games/autosokoban/?v=1&seed=722222541&level=6
Bug, or am I just not doing it right?
It's possible. I solved it in 17 moves. A lot of manipulation, however.
Mon 22-Aug-2011 16:23
does this problem have a solution?
Thu 10-Nov-2011 16:40
does this problem have a solution?
Yes, I've found a solution in 19 turns.
Mon 9-Jan-2012 04:56
Fri 13-Jan-2012 03:32
Oh! I solved it!
Wed 29-Feb-2012 06:18
(I don't know much about the language you programmed it in, but is there a reason that the level counter is signed? However, that would just delay the problem...)
Mon 19-Mar-2012 14:59
Thu 17-May-2012 22:01
--
Xyz_39808
Wed 23-May-2012 15:16
Thu 12-Jul-2012 13:28
http://www.linusakesson.net/games/autosokoban/?v=1&seed=722222541&level=1768
Mon 13-Aug-2012 21:04
http://www.linusakesson.net/games/autosokoban/?v=1&seed=810975398&level=1000
Fri 31-Aug-2012 01:01
Linus Åkesson
Fri 31-Aug-2012 19:37
Good find! The best levels are counter-intuitive like that.
Fri 7-Dec-2012 00:00
I have tried many levels here and all of the levels mentioned above by others, they all seem a bit on the easy side.
I wish it can generate really difficult levels.
I do mean, super difficult levels.
Mon 16-Sep-2013 18:32
Fri 27-Sep-2013 02:12
However for the life of me I can't solve
http://www.linusakesson.net/games/autosokoban/?v=1&seed=722222541&level=6
Bug, or am I just not doing it right?
I'm interested in the generation algorithm too. :)
Tue 5-Nov-2013 02:19
It is possible and is in fact pretty easy.
Here's the LURD solution:
LLLulDulldRddllluluRRRurDlllddrrdrrruLdllulluurrurrrdLDDrdLuLLLrrruuulldRDrdLurUruL
Sat 30-Nov-2013 04:38
Linus Åkesson
Sat 30-Nov-2013 16:06
Sure, go ahead!
Sat 30-Nov-2013 23:49
The bug where the tiles end up twice as tall as they are wide on Firefox 10 is apparent for me as well. I'm not sure why it appears like that, but the game is still playable.
Wed 18-Jun-2014 10:02
http://www.linusakesson.net/games/autosokoban/?v=1&seed=295316096&level=8
I got stuck in one way of thinking and didn't see all the possibilities.
Sat 21-Jun-2014 04:23
http://www.linusakesson.net/games/autosokoban/?v=1&seed=295316096&level=26
Can anyone else solve it?
Sat 21-Jun-2014 09:47
http://www.linusakesson.net/games/autosokoban/?v=1&seed=1181759978&level=2811y
Sat 5-Jul-2014 23:49
http://www.linusakesson.net/games/autosokoban/?v=1&seed=1181759978&level=2811y
I think it's a good one, because it was actually easier than #26! :)
Fri 1-Aug-2014 17:57
First of all, congratulations! You have done an amazing job! It looks fantastic!
Well, I have a project to create a random map creator for sokoban, but I'm having a lot of trouble to do it. I've already looked for the academic paper you talked about, but unfortunately I wasn't able to find it. I would appreciate a lot if you could give me a hand with it.
Thanks a lot
Thu 7-Aug-2014 10:50
Enjoy. (It's impossible.)
Tue 11-Nov-2014 18:25
Enjoy. (It's impossible.)
Fri 21-Nov-2014 14:00
(I don't know much about the language you programmed it in, but is there a reason that the level counter is signed? However, that would just delay the problem...)
It's some sort of overflow I'd say as 2147483647 = 0b01111111111111111111111111111111 (so one zero and 31 one's)
Max Porshnev
Wed 17-Dec-2014 13:46
Enjoy. (It's impossible.)
Fri 19-Dec-2014 21:11
Sat 14-Mar-2015 01:06
Solved. 40 moves. Probably can do less. Took 30 seconds.
Sat 14-Mar-2015 01:47
Solved. 40 moves. Probably can do less. Took 30 seconds.
I was all excited about solving 768 but I can't solve this one:
http://www.linusakesson.net/games/autosokoban/?v=1&seed=123456789&level=1000
Is it solvable?
Max Porshnev
Tue 17-Mar-2015 18:33
Is it solvable?
Wed 8-Jul-2015 17:25
Tue 25-Aug-2015 01:12
http://www.linusakesson.net/games/autosokoban/?v=1&seed=1278908319&level=4
Linus Åkesson
Tue 8-Sep-2015 17:52
http://www.linusakesson.net/games/autosokoban/?v=1&seed=1278908319&level=4
Not at all. But it's a nice find!
Wed 9-Sep-2015 01:16
Fri 5-Feb-2016 14:25
Fri 12-Feb-2016 00:32
Tue 22-Mar-2016 23:56
Linus Åkesson
Wed 30-Mar-2016 00:41
Hi! I saw your mail about this; sorry for not replying sooner. Yes, you can use levels that you got from my level generator. But don't hook up the app directly to the online generator, because that would increase my bandwidth requirements. Include a credit and a link to my page somewhere.
The same permission is hereby granted to anybody else who wants to do the same.
Fri 6-May-2016 07:01
Sun 11-Sep-2016 13:10
Sat 3-Dec-2016 22:19
Linus, your site is my new homepage!
Cheers,
falk
Sat 3-Dec-2016 22:47
Linus, your site is my new homepage!
Cheers,
falk
nm, got it with the help of my wife. For an engineer, I really suck at puzzles!
Mikael Johansson
Sat 22-Apr-2017 02:52
My first "app" was a J2ME-midlet originally made for the SE T610. It was Sokoban, with the feature of "in-app-purchase" ;) Beeing able to download new level-sets from my webserver that kept the levels as strings in MySQL. The midlet sent max size of it's screen to the server and only got levels that fit. It worked very well on most j2me enabled phones i tried it on, even the low end ones. It can still be downloaded:
http://adent.dyndns.org/wap/apps/Sokoban/index.wml
But the level download feature does not work right now, shall try to fix it server side some time.
When everything kind-of-like worked the project was'nt fun any more... And also, lack of freely available levels...
It would be cool to finish it up some time.
Mon 24-Apr-2017 21:18
http://www.linusakesson.net/games/autosokoban/?v=1&seed=1329696099&level=20
Thu 1-Jun-2017 01:34
http://www.linusakesson.net/games/autosokoban/?v=1&seed=1329696099&level=20
The level is actually not as difficult as you think.
Using the upper path as a one-way sliding door makes it easy.
To make it more interesting, you can actually eliminate the upper path as a one-way sliding door by adding a wall.
Like this:
#####-----
##--###---
#@--$-####
##-##----#
-#.*.-.$-#
-##$-$-$.#
--#-.$.-##
--#######-
Still relatively easy.
Mon 12-Jun-2017 13:04
Joe Care
Thu 15-Jun-2017 04:05
Now it's 2017 how about the source code now ?
Or at least tell us more about your solution.
The first part I think is a base-room that you modify with several templates.
Tue 25-Jul-2017 23:16
http://www.linusakesson.net/games/autosokoban/?v=1&seed=1221090344&level=18
I got it almost solved, but I can't finish it, I always get the last two crates in a position where I can only push one of them into their place
Tue 25-Jul-2017 23:24
http://www.linusakesson.net/games/autosokoban/?v=1&seed=1221090344&level=18
I got it almost solved, but I can't finish it, I always get the last two crates in a position where I can only push one of them into their place
Okay, just as I had posted this comment I finally solved that level (in 33 moves). It's still pretty tricky.
Fri 23-Feb-2018 18:27
This way, we can play the level on our favorite Sokoban program.
Thu 17-May-2018 07:47
Mon 18-Jun-2018 09:22
It's not impossible, it's very easy.
Do: Up, Right, Up, Up, right, right, right
Do not start with this: Up, Right, Right, Right, Up.
Tue 19-Mar-2019 17:06
Has it got a solution? It's driving me mad!
Tue 26-Mar-2019 14:22
Has it got a solution? It's driving me mad!
This is probably the best level on this site so far.
Nice!
DlddddrrddrrrrruuuuuuullldDuurrrdddddddl
lllluulluuuRRRddrruLUlllldddrrddrrrrruuu
uLrddddllllluulluuurrrrddrRuruuulllDDlll
ldddrrddrruLdrrrruuUllllDllluuurrrrDulll
ldddrrruUrRdrrdddllllUUURRluuuurrrddDDDu
uuuullldddrRlluuurrrddDDulldRllldllluuur
rRllldddrrrururrruuullldDDulllldddrrruRR
llUddllluuurrRdrrrruuullldDDuuuuulllDD
Sun 7-Apr-2019 17:57
http://www.linusakesson.net/games/autosokoban/?v=1&seed=946768135&level=16
Wed 29-May-2019 00:47
Tue 25-Jun-2019 03:00
Writing this down just to remember it, a nice little level worthy of playing. Some interesting tricks in it.
Tue 20-Aug-2019 08:26
Now I see your website and find that you have solved this problem perfectly more than ten years ago. Thank you, this is an impressive work.
Sun 24-Nov-2019 02:37
Fri 13-Dec-2019 10:46
http://www.linusakesson.net/games/autosokoban/?v=1&seed=1826525112&level=13