Testing PegSolitaire becomes pretty hard when it's solving a 5-width triangle under the current implementation. To visualize, comment out this line here and run pytest from the working directory.
TestServer takes a while to finish because we're solving all the puzzles, PegSolitaire taking the majority of the time.
I suggest the following options to improve PegSolitaire's testing time
Design a new testing variant for PegSolitaire with less possible states
Recode pegSolitaire, either by optimizing generateMoves and doMove or reimplementing PegSolitaire under a C-based extension.
Testing PegSolitaire becomes pretty hard when it's solving a 5-width triangle under the current implementation. To visualize, comment out this line here and run
pytest
from the working directory.TestServer takes a while to finish because we're solving all the puzzles, PegSolitaire taking the majority of the time.
I suggest the following options to improve PegSolitaire's testing time