Show HN: Kuboble.com – Minimalistic sliding pieces puzzle game (opens in a new tab)kuboble.com
437 pointsHi,
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 commentsnicely done
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.
Didn't put much thought into it to be fair. But it's true that the mirror can feel like a completely different problem.
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?
*Step 1: Level Generation*
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) 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.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)
After trying a LOT of heuristics I have made two main conclusions:
Rinse and repeat and I have aproximately 40k levels in the current database.- 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.
* 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.
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?
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.
All comments shown.
Couldn't load more comments. Check your connection and try again.