ehiggins98 / Battlecode2020

GNU Affero General Public License v3.0
0 stars 0 forks source link

Change recipientGoal message protocol to Goal[] #36

Open JMDowns opened 4 years ago

JMDowns commented 4 years ago

As it says. This way, we can target units with multiple goals at once.

ehiggins98 commented 4 years ago

I considered doing this, but I didn't know how to implement it. We can't use the one-hot-type method we did for the robot type parameter, since we need to have room for more than 16 goals. Because of that, I thought allowing either one goal or all goals would be fine, and I haven't run into a situation where it was an issue.