All Projects → nicolasbrugneaux → elo-js

nicolasbrugneaux / elo-js

Licence: other
Elo algorithm implementation in JS.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to elo-js

chess
Chess (game)(♟) built in C# and ASCII art.
Stars: ✭ 20 (+11.11%)
Mutual labels:  chess
pychess-variants
Chess variants server
Stars: ✭ 137 (+661.11%)
Mutual labels:  chess
pbchess
An open-sourced free online chess platform
Stars: ✭ 42 (+133.33%)
Mutual labels:  chess
rust-pgn-reader
Fast non-allocating and streaming reader for chess games in PGN notation
Stars: ✭ 46 (+155.56%)
Mutual labels:  chess
chessx
Sources of the official ChessX version.
Stars: ✭ 43 (+138.89%)
Mutual labels:  chess
MyChess
中国象棋pygame
Stars: ✭ 30 (+66.67%)
Mutual labels:  chess
elo
Elo ranking platform implemented in Clojure and re-frame
Stars: ✭ 17 (-5.56%)
Mutual labels:  elo
Walleye
A chess engine written from scratch in Rust ♞
Stars: ✭ 82 (+355.56%)
Mutual labels:  chess
zahak
A UCI compatible chess AI in Go
Stars: ✭ 20 (+11.11%)
Mutual labels:  chess
IntelliChess
Chinese Chess AI game client
Stars: ✭ 18 (+0%)
Mutual labels:  chess
chessground
Chessground React Wrapper
Stars: ✭ 15 (-16.67%)
Mutual labels:  chess
bot-o-tron
Try out lichess' bot interface
Stars: ✭ 36 (+100%)
Mutual labels:  chess
rchess
♛ Chess package for R
Stars: ✭ 68 (+277.78%)
Mutual labels:  chess
chessalyzer.js
A JavaScript library for batch analyzing chess games
Stars: ✭ 14 (-22.22%)
Mutual labels:  chess
leanchess
The world's smallest chess program
Stars: ✭ 71 (+294.44%)
Mutual labels:  chess
gochess
Online real time chess web server using websockets
Stars: ✭ 32 (+77.78%)
Mutual labels:  chess
Chess-Helper
Simple Chrome extension adding nice features to chess.com website
Stars: ✭ 23 (+27.78%)
Mutual labels:  chess
ChessPositionRanking
Software suite for ranking chess positions and accurately estimating the number of legal chess positions
Stars: ✭ 78 (+333.33%)
Mutual labels:  chess
solid-chess
A decentralized chess app build on top of Solid.
Stars: ✭ 46 (+155.56%)
Mutual labels:  chess
Bit-Genie
UCI chess engine in C++
Stars: ✭ 19 (+5.56%)
Mutual labels:  chess

Elo-js Build Statuselo-js API Documentation

This is a small implemention of the Elo system. Based on wikipeda's information.

Trying to use ES6 features such as class to be fancy.

Installation

npm install elo-js

Usage

Browser

requireJS and browserify compatible.

<script src="elo-js/index.js"></script>

<script>
  var elo = new Elo();

  var player1Rating = 1200;
  var player2Rating = 1250;

  var newPlayer1Rating  = elo.ifWins( player1Rating, player2Rating );
  newPlayer1Rating      = elo.ifLoses( player1Rating, player2Rating );
  newPlayer1Rating      = elo.ifTies( player1Rating, player2Rating );
</script>

Node

  var Elo = require( 'elo-js' );
  var elo = new Elo();

  var player1Rating = 1200;
  var player2Rating = 1250;

  var newPlayer1Rating  = elo.ifWins( player1Rating, player2Rating );
  newPlayer1Rating      = elo.ifLoses( player1Rating, player2Rating );
  newPlayer1Rating      = elo.ifTies( player1Rating, player2Rating );

Contribute

Any idea, remarks? Fill an issue, drop a mail, feel free! ❤️

Build from source

git clone https://github.com/nicolasbrugneaux/elo-js.git
cd elo-js
npm install
gulp # watch src and runs tests
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].