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

Multiplayer Glicko2Implementation #10

Open
CesMak opened this issue Aug 7, 2020 · 3 comments
Open

Multiplayer Glicko2Implementation #10

CesMak opened this issue Aug 7, 2020 · 3 comments

Comments

@CesMak
Copy link

CesMak commented Aug 7, 2020

Hey there,
I would like to use glicko2 for a multiplayer card game like witches or wizzard from amigo. Lets say you have 4 players that play against each other and lets say at the end of the game player 1 wins and all other player loose - in glicko2 as far as I understood your implementation I only can compute a rating between two players is that right?

rate(rating_player1, [(WIN, rating_player2)])

Is there a fast hack to go for multiplayer? What would you suggest?
Taking the mean of all other players? as rating_player2?

@gbtami
Copy link

gbtami commented Aug 7, 2020

Maybe you should try https://trueskill.org/ instead.

@CesMak
Copy link
Author

CesMak commented Aug 7, 2020

Yeah I saw that but you cannot use trueskill commercially and it has some well known problems.``

Anyways I wonder why this is not the same:

    env = Glicko2(tau=0.5)
    r1 = env.create_rating(1500, 200, 0.06)
    r2 = env.create_rating(1500, 200, 0.06)
    r3 = env.create_rating(1500, 200, 0.06)

    print("Initial 2 new players:", printLevels([r1, r2]), r1)
    r11 = env.rate(r1, [(WIN, r2)])
    r111 = env.rate(r11, [(LOSS, r3)])
    print(printLevels([r111]), r111)

    r_direct = env.rate(r1, [(WIN, r2), (LOSS, r3)])
    print(printLevels([r_direct]), r_direct)
Initial 2 new players: [8300.0, 8300.0] (mu=1500.000, phi=200.000, sigma=0.060)
[8810.8053] (mu=1499.474, phi=165.683, sigma=0.060)
[8825.4008] (mu=1500.000, phi=164.973, sigma=0.060)

@CesMak
Copy link
Author

CesMak commented Aug 8, 2020 via email

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

2 participants