Skip to content

Instantly share code, notes, and snippets.

View enesien's full-sized avatar

Gavin D. Johnsen enesien

View GitHub Profile
@bastienrobert
bastienrobert / elo.ts
Last active March 5, 2022 00:29
Simple implementation of Elo rating system in typescript
// https://en.wikipedia.org/wiki/Elo_rating_system
const K = 32
export enum EloStatus {
LOOSE = 0,
DRAW = 0.5,
WIN = 1
}