#9 yes you are right, Buchholz can also be used. I didnt ask my question right, I didnt want to know how Tiebreaks work in general ,but on Lichess. According to Lichess they only use Sonneborn-Berger.
I tried to look into the code, but I am not familiar with Scala and I dont have the time currently. It doesnt seem like there is a "hidden" score. I believe that either the PlayerID is used, the order in which they enter the tournament or the suggestion by #7. If enough people are interested, we could maybe just do a quick tournament to test it (Would need 2 players with same rating though).
Also here is some parts of the code which I think are useful if anyone is good with Scala or has much time:
github.com/ornicar/lila/blob/master/modules/swiss/src/main/SwissRankingApi.scala -> ComputeRanking might be the function we are looking for or maybe something in
github.com/ornicar/lila/blob/master/modules/swiss/src/main/SwissScoring.scala -> functions recomputing, fetchPlayer, fetchPairing might also give some hints.
To understand those, these might be helpful.
github.com/ornicar/lila/blob/master/modules/swiss/src/main/Env.scala -> SwissColls is seen often as the variable colls
github.com/ornicar/lila/blob/master/modules/db/src/main/Db.scala -> db is used in SwissColls
github.com/ornicar/lila/blob/master/modules/db/src/main/dsl.scala -> $ functions
I tried to look into the code, but I am not familiar with Scala and I dont have the time currently. It doesnt seem like there is a "hidden" score. I believe that either the PlayerID is used, the order in which they enter the tournament or the suggestion by #7. If enough people are interested, we could maybe just do a quick tournament to test it (Would need 2 players with same rating though).
Also here is some parts of the code which I think are useful if anyone is good with Scala or has much time:
github.com/ornicar/lila/blob/master/modules/swiss/src/main/SwissRankingApi.scala -> ComputeRanking might be the function we are looking for or maybe something in
github.com/ornicar/lila/blob/master/modules/swiss/src/main/SwissScoring.scala -> functions recomputing, fetchPlayer, fetchPairing might also give some hints.
To understand those, these might be helpful.
github.com/ornicar/lila/blob/master/modules/swiss/src/main/Env.scala -> SwissColls is seen often as the variable colls
github.com/ornicar/lila/blob/master/modules/db/src/main/Db.scala -> db is used in SwissColls
github.com/ornicar/lila/blob/master/modules/db/src/main/dsl.scala -> $ functions