In matchup.sim.Simulator:95-96, we should have information about the other team's skill levels rather than our own.
Swapping skillsB and skillsA works:
game.playerA.distribution = playerA.getDistribution(skillsB, isHome);
game.playerB.distribution = playerB.getDistribution(skillsA, !isHome);
Also, I am encountering some issues in some games (after the first one) where one of the players will play as the home team twice: (error log below)
Starting game with players random, g7
Player random skills are [11, 8, 9, 3, 9, 6, 10, 3, 1, 1, 1, 11, 11, 4, 2]
Player g7 skills are [1, 1, 2, 3, 4, 5, 6, 6, 7, 8, 8, 9, 9, 10, 11]
Home: g7, Away: random
Player random distribution is [[3, 4, 11, 9, 1], [9, 6, 1, 1, 11], [2, 8, 3, 10, 11]]
Opponent skill :[11, 8, 9, 3, 9, 6, 10, 3, 1, 1, 1, 11, 11, 4, 2]
Player g7 distribution is [[11, 10, 8, 6, 4], [9, 7, 5, 3, 1], [9, 8, 6, 2, 1]]
Round 1
Player random round is [9, 1, 4, 11, 3]
Player g7 round is [3, 5, 7, 1, 9]
Score: random 2, g7 3
Round 2
Player random round is [11, 1, 1, 9, 6]
Player g7 round is [1, 2, 6, 8, 9]
Score: random 1, g7 2
Round 3
Player random round is [11, 8, 2, 10, 3]
Player g7 round is [10, 11, 6, 4, 8]
Score: random 1, g7 3
Total score: random 4 g7 8
Home: g7, Away: random
Exception! Index: 4, Size: 0