chiark / gitweb /
Tracks: make solver return max difficulty used.
authorSimon Tatham <anakin@pobox.com>
Wed, 26 Feb 2020 06:03:35 +0000 (06:03 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 26 Feb 2020 06:03:35 +0000 (06:03 +0000)
commitf8027fb2e0032b362621e7314ef0ac6cdc2b8577
treeea20b9dfa8c29571eb57e82601e2dcca9ddde6e4
parent79a5378b5adc46ee33ba34d55738f916fb8adfc9
Tracks: make solver return max difficulty used.

This should speed up game generation, because now we don't have to run
the solver _twice_ whenever we want to check that the grid has exactly
the intended difficulty. Instead, we can just run it once and check
the max_diff output.
tracks.c