Readit News logoReadit News
felixturner commented on Building a Procedural Hex Map with Wave Function Collapse   felixturner.github.io/hex... · Posted by u/imadr
porphyra · 3 days ago
The post glosses over the "backtracking" and says they just limit it to 500 steps but actually constraint programming is an extremely interesting and complicated field with lots of cool algorithms and tricks. In this case we could solve it with Knuth's Algorithm X [1] with dancing links, which is a special kind of backtracking. Algorithm X should, in theory, be able to solve the border region described in the article's "Layer 2" with a higher success rate as opposed to 86%.

Furthermore, various heuristics can speed up the backtracking a lot compared to a brute force approach. As anyone who has implemented a Sudoku solver can attest, a brute force backtracking is easy to implement but will immediately get bogged down with slowness.

[1] https://en.wikipedia.org/wiki/Knuth%27s_Algorithm_X

felixturner · 2 days ago
Thanks for the feedback. Feel free to drop a PR :)
felixturner commented on Keep Out – WebGL Game Experiment   littleworkshop.fr/keepout... · Posted by u/mariuz
franck · 10 years ago
Exactly. It was a design decision that we took from the start. Legend of Grimrock 1 & 2 are a good example of a recent indie game with "old school" controls on purpose. It was a big inspiration for our game.
felixturner · 10 years ago
It seems odd not to consider a control scheme that is so familiar to so many people. Would adding mouse-look break a lot of things?

BTW - this vid seems to show Legend of Grimrock playing with mouse-look: https://youtu.be/xALsxZv0pwg?t=8m53s

BTW 2 - just discovered that cursor keys can rotate. WASD for motion and L/R cursor keys to rotate is waaay better for me.

u/felixturner

KarmaCake day2September 16, 2015View Original