diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-01-04 12:40:25 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-18 15:40:30 +0100 |
commit | 6f7629ddffbad3affd36c348904874b468b11b55 (patch) | |
tree | 0a842da5f5d562e1bc3af3fd226938722af2525f /info/rules3.jpg | |
parent | 06abc605b0e1e32585ec72e410dae5bc2e407d73 (diff) | |
download | rommel-in-the-desert-6f7629ddffbad3affd36c348904874b468b11b55.tar.gz |
Memoize (successful) supply searches.
Use the hex number AND the pathing state for the memo cache.
NOTE: Unsuccessful searches cannot be memoized, because we may be
approaching the hex in the opposite direction of supply. Since the
search never backtracks we would record an (incorrectly) negative
result.
TODO: direction of approach and "supply_visit" is also part of state that
should be part of the memo key for accuracy.
Diffstat (limited to 'info/rules3.jpg')
0 files changed, 0 insertions, 0 deletions