Lurker News
Hi,

I wanted to share a simple game I wrote.
It's a sliding pieces puzzle like many others. I have focused a lot on making the experience smooth and minimalistic and the levels being challenging in a way a sudoku or chess puzzles could be.
I had no prior knowledge of game development and while it feels like someone competent could build this game in a week I spent over two years and hundreds of hours to bring this game to life.
My journey went through:

    - thinking it will be a PC game
    - being overwhelmed by the amount of different game frameworks
    - hiring an indie dev to bootstrap the game in Unity for me
    - realize the small levels are actually cool and it might fit on a phone
    - generating levels and playing through thousands of them myself to curate a smaller list
    - realizing the Unity wasn't a good choice
    - rewriting the game in html + js drawing on canvas + React
    - hiring a bunch of fiverr artists and testers to polish it up
I think I am finally satisfied with the result enough to be willing to share it with the world.

If you're a fan of minimalist sliding pieces puzzles I'd be happy if you give it a try!
the game has: - no ads - no tracking of any kind - fully offline after first load

Comments (155) 60 threads

Earlier comments
insane_dreamer#
As a former sokoban player (I think I last played it on a Palm V but can’t remember) I like it. I miss the little guy running around though :)

nicely done

green-eclipse1 reply#
I love this! I'll be waiting at doctors offices a lot over the next few days and will be grinding hard on this. Thanks for sharing it.

Playing on desktop vs mobile is interesting -- I noticed the board isn't just rotated 90 degrees, but rotated and mirrored. Just curious why you decided to do that? A quirk in the rendering or something? Thanks again.

kuboble1 reply#
Swapping x/y coordinates was easier than rotating.

Didn't put much thought into it to be fair. But it's true that the mirror can feel like a completely different problem.

green-eclipse#
Makes sense!
emilesilvis1 reply#
I love it! Thank you for making it and sharing it. And kudos for pulling it off.

I'm interested in the process of creating the puzzles. What are the conceptual steps you go through to create them? Do you use some algorithmic process or it's all handcrafted?

kuboble1 reply#
The process evolved and I have eventually settled with something like this:

*Step 1: Level Generation*
Let's say I decide to generate 3-ball levels at 4x4 grid
I do `generate_all_boards(width: 4, height: 4,max_obstacles: 6)` and it will spit out all unique boards 4x4 with at most 6 tiles occupied by an obstacle with regards to all possible isoporphisms (rotations and mirrors)

    4 4
    ....
    ....
    ....
    ....
    4 4
    X...
    ....
    ....
    ....
    4 4
    .X..
    ....
    ....
    ....
    4 4
    ....
    .X..
    ....
    ....

  (...)

  4 4
  XX.X
  ...X
  ....
  .X.X


Now on each board I decide the starting position (usually 3 balls in a row in a corner and some other choices if not possible)

  4 4
  ABC.
  ....
  ....
  ....
  4 4
  X...
  ....
  ....
  ABC.

  4 4
  XX.X
  A..X
  B...
  CX.X


Then for each level I start generating with BFS all possible positions reachable from this state. I have several complex heuristics to decide which of those positions makes the most interesting level.

After trying a LOT of heuristics I have made two main conclusions:
- on board there is very often one main trick and any of the interesting final positions have solution based on the same trick and trying to make more levels from one geometry is in all cases I tried a logic duplication.
- the maximum movecount is good enough of a metric
so I take the maximum movecount position, whith some other tie-breakers I don't remember.
e.g.

  FINAL POSITION: score:
  Movecount: 13
  A B C .
  a . c .
  . . . b
  . . . .
Rinse and repeat and I have aproximately 40k levels in the current database.

* Step 2 : Level Curation*
I have created a version of the game with all those 40k levels split by groups of geometry, number of balls and number of obstacles, and a button "random level in current group". And I started playing those random levels over and over and over. I added a small button "Rate this level" so that whenever I got a level I thought was interesting or some new motive has appeared I rated it as "Super".
In the end all the "Super" levels made it into final game.

emilesilvis#
Very insightful, thanks for sharing.
greenpeas1 reply#
Really fun game, congrats! And good job sticking to it for so long, and getting it out there!

I'm curious whether you wrote an automatic solver to find the optimal number of moves per level? And does the number of moves in an optimal solution correlate with difficulty? Or are there easy levels with long optimal solutions?

kuboble#
Length of the solution correlates with difficulty just not perfectly. It's easy to come up with artificial boards with high move count that are easy (e.g. Hanoi towers or long winded corridors)

With three pieces difficulty gets much harder past 16 moves optimal.
It was a long process but in the end I wrote program to generate all different board shapes, for each of those shapes I generated some basic starting position (all pieces next to each other) and then generated all positions reachable from starting position.
Then I tried different heuristics as to which level is the most interesting and ended up with just taking the one with the longest solution.
It generated approximately 100k levels and I started playing them randomly and marking those I liked to final game.

Load more comments