←back to thread

99 points agnishom | 1 comments | | HN request time: 0.237s | source
Show context
LandR ◴[] No.44363857[source]
Does anyone know of any algorithms for generating these game boards ?

That will produce challenging boards ?

replies(4): >>44363901 #>>44364142 #>>44364419 #>>44366320 #
CJefferson ◴[] No.44363901[source]
It's a hard problem, for a bunch of reasons :)

1) It's not too hard to make a problem with at least one solution (just put the queens down first, then draw boxes), but there isn't any good way of making levels with unique solutions.

2) Once you've accomplished that, it's hard to predict how hard a level will be, and then it's hard to make levels easier / harder.

I happen to be currently researching this topic (well, I'm doing all kinds of these grid-based puzzles, but this is an example). The algorithm tries to make "good" levels, but there is a good probability it will end up with something useless we need to throw away, and then try again.

It's easy to make levels which are trivial, and similarly easy to make levels which are far beyond human ability, but hitting things in the 'human tricky but solvable' sweet-spot is where most of the difficulty comes from.

I should probably try writing up a human-readable version of how I do it. It involves a bunch of Rust code, so I can hit a whole bunch of trendy topics!

replies(2): >>44364279 #>>44365534 #
1. slig ◴[] No.44365534[source]
> I should probably try writing up a human-readable version of how I do it. It involves a bunch of Rust code, so I can hit a whole bunch of trendy topics!

Do you have a blog? I'm interested.