rating

package
v0.0.0-...-23631de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArraysMatch

func ArraysMatch(ar1 []int, ar2 []int) bool

func DetermineFinalScores

func DetermineFinalScores(oResult EntGameResult, arPlayers [2][]*players.EntPlayer) [2]int

func GeneratePairingVariants

func GeneratePairingVariants()

func GetHappyDuoPlayers

func GetHappyDuoPlayers(arTeams [2][]*players.EntPlayer) int

func GetMmrDiff

func GetMmrDiff(arVariantP [2][]*players.EntPlayer) int

func IncreaseUncertainty

func IncreaseUncertainty()

func IsHappyDuoPlayer

func IsHappyDuoPlayer(pPlayer *players.EntPlayer, arPlayers []*players.EntPlayer) bool

func Pair

func Pair(arUnpairedPlayers []*players.EntPlayer) ([]*players.EntPlayer, []*players.EntPlayer)

func PlacePlayers

func PlacePlayers(arUnpairedPlayers []*players.EntPlayer, iBPicksTwo int) [2][]*players.EntPlayer

func SetCron

func SetCron()

func UpdateMmr

func UpdateMmr(oResult EntGameResult, arFinalScores [2]int, arPlayers [2][]*players.EntPlayer)

func VariantExists

func VariantExists(arCheckedVariant [2][]int) bool

func Watchers

func Watchers()

Types

type EntGameResult

type EntGameResult struct {
	SettledScores    [2]int
	CurrentScores    [2]int
	InRound          bool
	CurrentHalf      int //1 or 2
	TeamsFlipped     bool
	TankKilled       bool //only valid if InRound == true
	TankInPlay       bool //only valid if InRound == true
	Dominator        [2]string
	Inferior         [2]string
	GameEnded        bool //no more results should be accepted
	InMapTransition  bool
	IsLastMap        bool
	AbsentPlayers    []string
	ConnectedPlayers int
	MapsFinished     int
	SomeoneBanned    bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL