logic

package
v0.0.0-...-22aee03 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BalanceTeams

func BalanceTeams(players Players) (Team, Team)

BalanceTeams balances players into two teams

func EloChange

func EloChange(team1Elo int, team2Elo int, winner string) (int, int, error)

EloChange calculates the elo delta for both teams

Types

type Players

type Players [10][2]int

type Team

type Team struct {
	Elo     int
	Players [5]int
	ID      int
}

Team describes a Team with players and their Elo

Jump to

Keyboard shortcuts

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