def test_build_config(self):
     max_round = 10
     initial_stack = 100
     small_blind = 5
     ante = 1
     blind_structure = None
     build_config(max_round, initial_stack, small_blind, ante,
                  blind_structure)
     with open(tmp_file_path, "w+") as f:
         f.write(self.capture.getvalue())
     with open(tmp_file_path, "rb") as f:
         data = yaml.load(f)
     self.eq(max_round, data["max_round"])
     self.eq(initial_stack, data["initial_stack"])
     self.eq(small_blind, data["small_blind"])
     self.eq(ante, data["ante"])
     self.eq(blind_structure, data["blind_structure"])
     self.eq("FIXME:your-ai-name", data["ai_players"][0]["name"])
     self.eq("FIXME:your-setup-script-path", data["ai_players"][0]["path"])
Esempio n. 2
0
def build_config_command(maxround, stack, small_blind, ante):
    build_config(maxround, stack, small_blind, ante, None)
Esempio n. 3
0
def build_config_command(players, maxround, stack, small_blind, ante, model):
    build_config(players, maxround, stack, small_blind, ante, model)
Esempio n. 4
0
def build_config_command(players, maxround, stack, small_blind, ante, model):
    build_config(players, maxround, stack, small_blind, ante, model)
Esempio n. 5
0
def build_config_command(maxround, stack, small_blind, ante):
    build_config(maxround, stack, small_blind, ante, None)