Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Resolve ¶
func Resolve(tree *monTypes.BidirectionalTree) gameTypes.GameStatus
Resolve iterates backwards over the bidirectional tree, iteratively checking the leftmost counter of each claim, and updating the claim's counter claimant. Once the root claim is reached, the resolution game status is returned.
Types ¶
type DelayCalculator ¶
type DelayCalculator struct {
// contains filtered or unexported fields
}
func NewDelayCalculator ¶
func NewDelayCalculator(metrics DelayMetrics, clock clock.Clock) *DelayCalculator
func (*DelayCalculator) RecordClaimResolutionDelayMax ¶
func (d *DelayCalculator) RecordClaimResolutionDelayMax(games []*monTypes.EnrichedGameData)
type DelayMetrics ¶
type DelayMetrics interface {
RecordClaimResolutionDelayMax(delay float64)
}
Click to show internal directories.
Click to hide internal directories.