createRatings beta
Function of @v12-engine/engine/server
ts
export declare function createRatings(options?: {
file?: string;
k?: number;
start?: number;
}): Ratings & {
ready: Promise<void>;
};Ratings kept in a file (file, JSON, read once and written after every game) or in memory: Elo, each side's players against the average of the other's, k 32, starting at 1500. The computer counts as start, and is not rated; a game with no winner, or with players of one side only, changes nothing