summaryrefslogtreecommitdiff
path: root/create.html
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-01-04 12:40:25 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-18 15:40:30 +0100
commit6f7629ddffbad3affd36c348904874b468b11b55 (patch)
tree0a842da5f5d562e1bc3af3fd226938722af2525f /create.html
parent06abc605b0e1e32585ec72e410dae5bc2e407d73 (diff)
downloadrommel-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 'create.html')
0 files changed, 0 insertions, 0 deletions