Пример #1
0
 def test_additonal_info(self):
     uuid = "hoge"
     self.assertIn(uuid, U.visualize_game_start(game_info, uuid))
     self.assertIn(uuid, U.visualize_round_start(2, ['C2', 'HQ'], seats, uuid))
     self.assertIn(uuid, U.visualize_street_start("preflop", "dummy", uuid))
     self.assertIn(uuid, U.visualize_declare_action(valid_actions, ['CA', 'DK'], round_state, uuid))
     self.assertIn(uuid, U.visualize_game_update(new_action, round_state, uuid))
     self.assertIn(uuid, U.visualize_round_result(winners, hand_info, round_state, uuid))
Пример #2
0
 def test_additonal_info(self):
     uuid = 'hoge'
     self.assertIn(uuid, U.visualize_game_start(game_info, uuid))
     self.assertIn(uuid,
                   U.visualize_round_start(2, ['2c', 'Qh'], seats, uuid))
     self.assertIn(uuid, U.visualize_street_start('preflop', 'dummy', uuid))
     self.assertIn(
         uuid,
         U.visualize_declare_action(valid_actions, ['Ac', 'Kd'],
                                    round_state, uuid))
     self.assertIn(uuid,
                   U.visualize_game_update(new_action, round_state, uuid))
     self.assertIn(
         uuid,
         U.visualize_round_result(winners, hand_info, round_state, uuid))
Пример #3
0
 def receive_game_update_message(self, new_action, round_state):
   print(U.visualize_game_update(new_action, round_state, self.uuid))
   self.__wait_until_input()
Пример #4
0
 def receive_game_update_message(self, new_action, round_state):
   print(U.visualize_game_update(new_action, round_state, self.uuid))
   self.__wait_until_input()
Пример #5
0
 def test_visualize_game_update(self):
     s = U.visualize_game_update(new_action, round_state)
     self.assertIn("p1", s)
     self.assertIn("ftwdqkystzsqwjrzvludgi", s)
     self.assertIn("raise: 30", s)
Пример #6
0
 def test_visualize_game_update(self):
     s = U.visualize_game_update(new_action, round_state)
     self.assertIn('p1', s)
     self.assertIn('ftwdqkystzsqwjrzvludgi', s)
     self.assertIn('raise: 30', s)
Пример #7
0
 def receive_game_update_message(self, action, round_state):
     print(U.visualize_game_update(action, round_state, self.uuid))