Relative Content

Tag Archive for pythonpython-3.x

Save the current state of a recursive loops to file

I have made a puzzle game that solves by it self by using brute force. My solver function seems to work just fine. It runs through all my pieces and even starts a new instance when “is_valid” is true and restore previously instance if it is false. This is my solver code.

Save the current state of a recursive loops to file

I have made a puzzle game that solves by it self by using brute force. My solver function seems to work just fine. It runs through all my pieces and even starts a new instance when “is_valid” is true and restore previously instance if it is false. This is my solver code.