It would be useful to have GetGoals(int player) and GetStrategicNumbers(int player) commands which return the goal/sn arrays for allied players. The underlying facts would be up-allied-goal and up-allied-sn. In the current situation with 3 allies it takes about 3000 commands (512 goals + 512 sn's per ally) per tick, or about 3ms per tick, which can be brought down to 6 commands and negligible time per tick through the proposed additions. If the given player is not an ally then return an array of 512 -1's (the up facts should also return -1 in that case).
It would be useful to have
GetGoals(int player)
andGetStrategicNumbers(int player)
commands which return the goal/sn arrays for allied players. The underlying facts would beup-allied-goal
andup-allied-sn
. In the current situation with 3 allies it takes about 3000 commands (512 goals + 512 sn's per ally) per tick, or about 3ms per tick, which can be brought down to 6 commands and negligible time per tick through the proposed additions. If the given player is not an ally then return an array of 512 -1's (the up facts should also return -1 in that case).