zond / godip

A dippy adjudicator in Go.
GNU General Public License v3.0
27 stars 22 forks source link

Unified how the order corroboration and phase messages compute expected/allowed build orders. #109

Closed zond closed 3 years ago

zond commented 3 years ago

I did not change the adjustment status calculation in the build order, since it's used to compute stuff for the adjudicator, and only applies to what's ALLOWED, not what's POSSIBLE.

The new function, private to the phase class and used only in the phase class, uses flags introduced to the validator to figure out where you are allowed to build, and computes how many builds are actually possible from there.

zond commented 3 years ago

I'll merge now. If you want to contribute better computation code or (one can always hope :) better tests, feel free to fix that afterwards!