If you've ever tried to get your head around how the IRB Rugby World Rankings work, this might help.Based on this detailed explanation on the IRB website, the following program emulates the method used for calculating rating points exchange; the basis of the official ranking system. The same algorithm is used for building pick & go'srelative ranking matrix and the Super Rugby rankings.