dambrisco / swiss-pairing

Tiny swiss pairing library with basic deterministic functionality
MIT License
12 stars 6 forks source link

considering the sequence of home - away #3

Open ghost opened 6 years ago

ghost commented 6 years ago

Does the plugin consider the sequence of home and away pairings ? For example if the guy (chess) played with white then he plays white again and again. screenshot from 2018-05-17 21-30-30 Example

dambrisco commented 6 years ago

It currently does not. This is something that certainly should be included, but currently would need to be handled by the implementing application. As the underlying blossom algorithm used for generating the matchup graph doesn't have any way to directly annotate ordering, any abstract implementation of alternating sides should be universally applicable (or, more directly, if you implement this yourself I'd love to include it in the library).

I can look into implementing this this weekend if you don't beat me to it.

ghost commented 6 years ago

thx for the answer, but I don't have enough skillz rn, I think :) so I rely on you atm :)