Talk:World Cup group stage

From Rosetta Code

Cricket

For fun I reworked this to simulate the Cricket World Cup which is going on right now. There is a slightly different setup (7 teams in a group and 2 points for a win) which results in a little under 10.5B possibilities (7 teams means 21 games means 321 outcomes) so it takes a while to run. Hopefully this is right:

First place: [0, 0, 0, 0, 0, 0, 777069, 592823952, 3303109152, 3847902975, 2013883641, 601414065, 100442349]
Second place: [0, 0, 0, 0, 0, 54873, 321498099, 4312085022, 4590731187, 1139414850, 95329143, 1240029, 0]
Third place: [0, 0, 0, 0, 13797, 88894134, 3369706731, 5857580169, 1109296377, 34785450, 76545, 0, 0]
Fourth place: [0, 0, 0, 14175, 36660897, 1804297824, 6778407411, 1804297824, 36660897, 14175, 0, 0, 0]
Fifth place: [0, 0, 76545, 34785450, 1109296377, 5857580169, 3369706731, 88894134, 13797, 0, 0, 0, 0]
Sixth place: [0, 1240029, 95329143, 1139414850, 4590731187, 4312085022, 321498099, 54873, 0, 0, 0, 0, 0]
Seventh place: [100442349, 601414065, 2013883641, 3847902975, 3303109152, 592823952, 777069, 0, 0, 0, 0, 0, 0]