예제 #1
0
 def receive_round_start_message(self, round_count, player_cards, seats):
     # print("*** receive_round_start_message")
     # print("**** U.visualize_round_start")
     print(
         U.visualize_round_start(round_count, player_cards, seats,
                                 self.uuid))
     self.__wait_until_input()
예제 #2
0
 def receive_round_start_message(self, round_count, hole_card, seats):
     print(U.visualize_round_start(round_count, hole_card, seats,
                                   self.uuid))
     quote = (str(round_count) + "라운드가 시작되었습니다.")
     tts.playTts(tts, quote)
     time.sleep(2)
     self.__wait_until_input()
예제 #3
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))
예제 #4
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))
예제 #5
0
 def receive_round_start_message(self, round_count, hole_card, seats):
   print(U.visualize_round_start(round_count, hole_card, seats, self.uuid))
   self.__wait_until_input()
예제 #6
0
 def receive_round_start_message(self, round_count, hole_card, seats):
   print(U.visualize_round_start(round_count, hole_card, seats, self.uuid))
   self.__wait_until_input()
예제 #7
0
 def test_visualize_round_start(self):
     s = U.visualize_round_start(2, ['C2', 'HQ'], seats)
     self.assertIn("Round 2 start", s)
     self.assertIn("C2", s)
     self.assertIn("HQ", s)
     self.assertIn("players information", s)
예제 #8
0
 def test_visualize_round_start(self):
     s = U.visualize_round_start(2, ['2c', 'Qh'], seats)
     self.assertIn('Round 2 start', s)
     self.assertIn('2c', s)
     self.assertIn('Qh', s)
     self.assertIn('players information', s)