Exemplo n.º 1
0
def main():
    #Tester().runTests()

    team_names = ["Jaune", "Blanc", "Bleu", "Vert", "Noir", "Orange", "Rouge"]
    print("Real")
    championship = createChampionship(FranckGame(), team_names)

    for name in team_names:
        print(name, count_roles(FranckGame(), championship, name),
              count_different_opponents(championship, name))

    print_championship(championship)
Exemplo n.º 2
0
 def testThatAllGamesDone(self):
     championship = createChampionship(
         FranckGame(), ["a", "b", "c", "d", "e", "f", "g", "h"])
     assert_equals(7, count_different_opponents(championship, "a"))
Exemplo n.º 3
0
 def testReferees(self):
     assert_similars([["a", "b", "c"], ["c", "a", "b"], ["b", "c", "a"]],
                     createChampionship(RefGame(), ["a", "b", "c"]))
Exemplo n.º 4
0
 def testEightTeams(self):
     assert_equals(28, len(createChampionship(SimpleGame(), ["a"] * 8)))
Exemplo n.º 5
0
 def testThreeTeams(self):
     assert_similars([["a", "b"], ["c", "a"], ["b", "c"]],
                     createChampionship(SimpleGame(), ["a", "b", "c"]))
Exemplo n.º 6
0
 def testTwoTeams(self):
     assert_contains("blue",
                     createChampionship(SimpleGame(), ["blue", "red"])[0])
Exemplo n.º 7
0
 def testNoTeams(self):
     assert_equals([], createChampionship(SimpleGame(), []))