Skip to content

Commit

Permalink
Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
icza committed Mar 6, 2023
1 parent 3ce7e66 commit 3994a35
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions rep/replay.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func (r *Replay) computeUMSTeamsAI() {
if p := r.Header.PIDPlayers[ac.PlayerID]; p != nil && p.Observer {
continue
}
filteredSlotIDs := filterOutObserverSlotIDs(ac.SlotIDs) // Note: first filter as in BGH Random teams this also includes the obs computer!
filteredSlotIDs := filterOutObserverSlotIDs(ac.SlotIDs) // Note: first filter as on "BGH Random Teams" this also includes the obs computer!
if len(filteredSlotIDs) == 1 && cmd.BaseCmd().Frame < frameMinLimit {
continue // Random team arrangement has likely not done, do not count!
}
Expand All @@ -357,7 +357,6 @@ func (r *Replay) computeUMSTeamsAI() {
virtualTeamIDSlotIDs[virtualID] = slotIDs
}
if len(virtualTeamIDSlotIDs) != 2 {
fmt.Println("ICZA", virtualTeamIDSlotIDs)
return // not 2 teams exactly
}

Expand Down Expand Up @@ -406,9 +405,9 @@ func (r *Replay) computeUMSTeamsAI() {

// obsProfile holds data for observer rules in different scenarios.
type obsProfile struct {
apmLimit int32
buildCmdsLimit int
earlyLeaveFrame repcore.Frame // consider early leaver observer
apmLimit int32 // Human obs must be below this APM limit
buildCmdsLimit int // Human obs must be below this build command limit
earlyLeaveFrame repcore.Frame // consider early leavers as observer
computer bool // Classify computer as observer (BGH Random Teams map)
}

Expand Down

0 comments on commit 3994a35

Please sign in to comment.