Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ELO rating #387

Open
Jameskmonger opened this issue May 5, 2021 · 2 comments
Open

ELO rating #387

Jameskmonger opened this issue May 5, 2021 · 2 comments

Comments

@Jameskmonger
Copy link
Owner

Players and bots should have an ELO score

This should be calculated by getting their ELO difference to each other player based on the difference in their finishing positions, then averaging this to change the players ELO

@Jameskmonger
Copy link
Owner Author

  • new lerna package "@creature-chess/elo"
  • take in an object like:
	{
		"player-id-abc123": { ranking: number, position: number },
		"player-id-iej917": { ranking: number, position: number },
		/* ... */
	}
  • return an object like:
	{
		"player-id-abc123": { ranking: number },
		"player-id-iej917": { ranking: number },
		/* ... */
	}
  • break the maths up into separate functions and unit test them (simple maths calculations should be very easy to test)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant