chess

package
v0.0.0-...-bb1ab1e Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const EloDefaultConstant = 30
View Source
const EloInitialValue = 1500

Variables

This section is empty.

Functions

func NewElo

func NewElo(currentRating, opponentRating float64, playerWon custom.Bool) float64

NewElo is a wrapper func for the NewEloWithConstant func, however we use the EloDefaultConstant value

func NewEloWithConstant

func NewEloWithConstant(currentRating, opponentRating float64, constant int, playerWon custom.Bool) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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