summaryrefslogtreecommitdiff
path: root/tools/xroads.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-11-26 12:46:37 +0100
committerTor Andersson <tor@ccxvii.net>2023-11-26 13:40:36 +0100
commit73e6e4106da9dbd2b854ece226819494a6865404 (patch)
tree2328853a4b6c69631a52f77d417b2c109145df4c /tools/xroads.js
parente0e56f84ca15014a88a0e391f7ec328e5b489c0e (diff)
downloadwaterloo-campaign-1815-73e6e4106da9dbd2b854ece226819494a6865404.tar.gz
Improve road search algorithm.
Make it simpler to understand and fix a bug where we would stop searching if a second road through the same hex was better (or same) than the current road! Only check and stop at paths already seen on cross-roads.
Diffstat (limited to 'tools/xroads.js')
0 files changed, 0 insertions, 0 deletions