johnridesabike / coronate

A Swiss-style chess tournament management app.
https://coronate.netlify.app/
Mozilla Public License 2.0
148 stars 25 forks source link

Can't change ranking players #10

Closed MikolajSzumigalski closed 4 years ago

MikolajSzumigalski commented 4 years ago

I find small bug. When I try add new user to tournament I can't change his ranking. When I try change ranking input, input above is changing.

Zrzut ekranu 2020-05-30 o 17 06 31

In the other hand this app is great! I try write mobile chess tournament app in React Native, but I can't write swiss pairing algorithm...

johnridesabike commented 4 years ago

This should be fixed now in https://github.com/johnridesabike/coronate/commit/9c062af90709ee4fdf3d9a5bf43e250335c51327

Figuring out the Swiss pairing was one of the trickier parts of making this. You can see a lot of the logic for it here: https://github.com/johnridesabike/coronate/blob/master/src/Data/Data_Pairing.re Some of the code is still a bit messy, but the basic idea is that you need to get a list of every possible pairing, rate how ideal that pairing is, and then use the blossom algorithm to get the result.