Beispiel #1
0
    def key_press_agents(self):
        """Create an environment with 6 key press agents"""
        num_of_plrs = 6
        self.env = HoldemTable(num_of_players=num_of_plrs, initial_stacks=500)
        for _ in range(num_of_plrs):
            player = KeyPressAgent(500)
            self.env.add_player(player)

        self.run_episode()
Beispiel #2
0
    def key_press_agents(self):
        """Create an environment with 6 key press agents"""
        from agents.agent_keypress import Player as KeyPressAgent
        env_name = 'neuron_poker-v0'
        num_of_plrs = 2
        self.env = gym.make(env_name, initial_stacks=self.stack, render=self.render)
        for _ in range(num_of_plrs):
            player = KeyPressAgent()
            self.env.add_player(player)

        self.env.reset()
Beispiel #3
0
    def key_press_agents(self):
        """Create an environment with 6 key press agents"""
        env_name = 'neuron_poker-v0'
        stack = 500
        num_of_plrs = 6
        self.env = gym.make(env_name, num_of_players=num_of_plrs, initial_stacks=stack, render=self.render)
        for _ in range(num_of_plrs):
            player = KeyPressAgent()
            self.env.add_player(player)

        self.env.reset()
Beispiel #4
0
    def random_agents(self):
        """Create an environment with 6 random players"""
        env_name = 'neuron_poker-v0'
        stack = 500
        num_of_plrs = 1
        self.env = gym.make(env_name, initial_stacks=stack, render=self.render)
        for _ in range(num_of_plrs):
            player = RandomPlayer()
            self.env.add_player(player)

            player = KeyPressAgent()
            self.env.add_player(player)

        self.env.reset()
Beispiel #5
0
 def key_press_agents(self):
     """Create an environment with 6 key press agents"""
     env_name = 'neuron_poker-v0'
     stack = 2000
     # num_of_plrs = 6
     env = gym.make(env_name, initial_stacks=stack, render=self.render)
     player = KeyPressAgent(name="LJY",range=0.3)
     env.add_player(player)
     # self.env.add_player(EquityPlayer(name='equity/50/50', min_call_equity=.5, min_bet_equity=-.5))
     env.add_player(RandomPlayer(name='Random-1',range=1))
     # env.add_player(RandomPlayer(name='Random-2',range=1))
     # env.add_player(RandomPlayer(name='Random-3',range=1))
     # env.add_player(RandomPlayer(name='Random-4',range=1))
     # env.add_player(RandomPlayer(name='Random-5',range=1))
     # self.env.add_player(PlayerShell(name='dqn001', stack_size=stack))
     # self.env.add_player(PlayerShell(name='dqn002', stack_size=stack))
     # self.env.add_player(PlayerShell(name='dqn003', stack_size=stack))
     # self.env.add_player(PlayerShell(name='dqn004', stack_size=stack))
     # self.env.add_player(PlayerShell(name='dqn005', stack_size=stack))
     env.reset()