add solvable klondike - #591
Conversation
|
Interesting approach. The challenge with a winnable games only option has always been that we'd need an algorithm to identify if a game is winnable, that works for all games. Or getting winnable seeds for every past, present, and future game. But this could work - at least unless someone comes up with a true winnable algorithm in the future. I'd have to run some tests, but there are two comments I have so far:
|
Sets up a shared spot for precomputed seed pools in case other games get this treatment later.
|
Good points. Rules are in now, and moved the seeds to a solvable_seeds folder. |
|
Okay, thanks. I'm a little busy the next couple days, so I might not be able to do my proper testing until next week. |
4977426 to
e175640
Compare
|
Gonna change around a few more things as well, so converting back to draft. I've been testing different klondike solvers and I have another idea. |
|
Okay. Just note that you might need to update the ID if I get back to adding new games first. |
|
I'm gonna go ahead and put this in for review. None of the other solvers I was working with are computationally more efficient. I had wondered about the possibility of generating a solvable game in real time, but even the faster A* solvers still are quite computationally expensive. |
|
Right. I'd figured a good winnable game generator would either have to tie into the solvers (currently only supported for FreeCell and Black Hole variants), or leverage the existing hint logic (not reliable enough). I've toyed with those a few times, given how many times the solvable games idea comes up, but never really got anywhere. I'll run some tests and get back to you. |
|
There's a good one written in rust that I've been impressed with speed-wise, but I'm not at a point where I'm thinking of integrating it directly - just using it to create seeds now while I work on ranking game difficulties and digging into the research on Klondike solvability. It's honestly a bit fascinating. |
|
Confirmed. Merging, thanks. |
Add a mode of Klondike that deals only known solvable games. Including 79,000 seeds that are known solvable (used ShootMe's Klondike-Solver). The seeds are not further broken down into difficulty ala Microsoft Solitaire, so it's a mix of difficulties at this time. Working on a "difficulty" level option/game choice in the future for Klondike.