saulabs/trueskill — Issue #1: the order of teams appears to change after 'update_skills'
Author: mikeforls
Created: 2011-12-06 15:02:23+00:00
State: open

Hi,

Thanks for going through the trouble of creating this code!

When I set team ranks in some arbitrary order, say, [3, 1, 2], I am not sure how to match the updated scores to the original teams. E.g. starting from equal mean assumptions, the above ordering of game ranks, leads to the first team on the list having the highest posterior mean.

I made a spec that is a reshuffle of one of your specs. I would think it should pass.

describe 'standard rating and reverse order of wins' do

before :each do
TrueSkill::FactorGraph.new(@teams, [2,1]).update_skills
end

it "should change second player's rating to [29.395832, 7.1714755]" do
@teams[1][0].should eql_rating(29.395832, 7.1714755)
end

it "should change first player's rating to [20.6041679, 7.1714755]" do
@teams[0][0].should eql_rating(20.6041679, 7.1714755)
end

end

Thanks,
Mike.