shlomif / PySolFC

A comprehensive, feature-rich, open source, and portable, collection of Solitaire games.
http://pysolfc.sourceforge.net/
GNU General Public License v3.0
463 stars 105 forks source link

Build new stuck check logic #409

Open joeraz opened 2 weeks ago

joeraz commented 2 weeks ago

Since the current stuck check logic has some issues, I think we'll need some new, better logic.

Note that the stuck check logic is also used by the demo. The logic needs to avoid creating a situation where the demo's actions will lead to an infinite loop that never triggers the stuck check or wins the game.

I believe it should be based on this general algorithm:

But logic like this would need extensive testing. Anyone want to help out?

hajo4 commented 2 weeks ago

But logic like this would need extensive testing. Anyone want to help out?

How exactly ? On the current v3.0, or the next v3.1 ? Or go back a few versions to find out if this bug was introduced lately ?

joeraz commented 2 weeks ago

It would be testing with the latest dev code for 3.2 (released 3.1 last week), once the new logic is in place.