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

Implement Elo rating #28

Open
marein opened this issue Jul 6, 2019 · 0 comments
Open

Implement Elo rating #28

marein opened this issue Jul 6, 2019 · 0 comments

Comments

@marein
Copy link
Owner

marein commented Jul 6, 2019

Problem description

  1. Players want to know how they perform over time.
  2. Players want to pair with equally strong players.
  3. Players want to know where they are on a scoreboard.

Possible solution
Create a new class named Player inside the context ConnectFour. Below there's an example structure of this class. The username is there as an example of how this issue supplements issue #14.

final class Player
{
    public function __construct(
        private readonly string $id;
        private string $username;
        private int $rating;
    ) {
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant