【文件属性】:
文件名称:elo-js:JS中的Elo算法实现
文件大小:6KB
文件格式:ZIP
更新时间:2021-06-07 22:25:25
javascript chess elo elo-js JavaScript
Elo-js
这是一个小实现。 基于*的信息。
尝试使用 ES6 特性,例如 class 是花哨的。
安装
npm install elo-js
用法
浏览器
requireJS 和 browserify 兼容。
< 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 , player2Ra
【文件预览】:
elo-js-master
----.jshintrc(776B)
----.flowconfig(39B)
----src()
--------index.js(3KB)
----.travis.yml(48B)
----Gulpfile.js(609B)
----README.md(1KB)
----tests.js(3KB)
----.gitignore(13B)
----index.js(6KB)
----package.json(801B)