Hi, here's an updated .lud using dale's suggestions. And here is a comparison of the changes made. Notes:
1. I changed ("TwoPlayersNorthSouth") so players could move forwards instead of backwards. I assume you wrote it like this because of a confusion between where players are facing versus where their starting position is? If this is not the case, feel free to change it back.
2. I added a condition "(if (= (score Mover) 0) ..." to (addScore) because otherwise the winner's final pass would always give their opponent score 1. EDIT: Having thought about this again, I think it'd make more sense if you replace this with "(if (not (all Passed)) (addScore Next 1))"
3. I changed the ending because in combination with dale's (priority) suggestion the old ending would lead to draws.
As dale said, the AI likely won't play to optimize that score though.
1. I changed ("TwoPlayersNorthSouth") so players could move forwards instead of backwards. I assume you wrote it like this because of a confusion between where players are facing versus where their starting position is? If this is not the case, feel free to change it back.
2. I added a condition "(if (= (score Mover) 0) ..." to (addScore) because otherwise the winner's final pass would always give their opponent score 1. EDIT: Having thought about this again, I think it'd make more sense if you replace this with "(if (not (all Passed)) (addScore Next 1))"
3. I changed the ending because in combination with dale's (priority) suggestion the old ending would lead to draws.
As dale said, the AI likely won't play to optimize that score though.