Exemplo n.º 1
0
 def play(self):
     """
     Play rounds
     """
     for round_num in range(1, self._rounds + 1):
         round_obj = Round(self._warriors,
                           core_size=self._core_size,
                           gui=self._gui,
                           number=round_num,
                           max_cycles=self._max_cycles)
         round_obj.play()
Exemplo n.º 2
0
def test_round_without_gui():
    warrior_a = Warrior([MOV("I", "#", 1, "}", 0)])
    warrior_b = Warrior([MOV("I", "#", 1, "}", 0)])
    round_obj = Round([warrior_a, warrior_b])
    round_obj.play()