CommentMay 24, 20162
Maybe you could take a look at implementations of the ELO ranking method, which takes into account the rank of both players before ranking (meaning Player1 will gain less points when winning against Player3 than Player2). https://en.wikipedia.org/wiki/Elo_rating_system