I tried 4:A>C>B 10:A>B>C 6:B>A>C 8:B>C>A 6:C>B>A 9:C>A>B which translates to 24:B>C 23:C>A 23:A>B My PERL script computes this as a win for B. You compute it as tie for A & B.