openai / gym

A toolkit for developing and comparing reinforcement learning algorithms.
https://www.gymlibrary.dev
Other
34.45k stars 8.59k forks source link

How to support Texas hold'em #819

Closed SmartAI closed 5 years ago

SmartAI commented 6 years ago

I want to do some research in playing Texas hold'em, how can I use gym?

wenkesj commented 6 years ago

@SmartAI Create a game engine that emulates Texas Hold'em, extend the gym.Env class and maintain the standard gym environment API. It may sound simple at first but multi-agent environments are non-trivial to implement and standardize. You may notice that there is a sparsity of such cases, but as a work around you can encode the multi- state- and action- space as spaces.Tuple of states/actions corresponding to players.

Good luck!

wenkesj commented 6 years ago

@SmartAI fyi I threw something together that demonstrates how a Texas Hold'em gym environment can be done, this is just one of many possibilities

SmartAI commented 6 years ago

@wenkesj Thanks for your suggestion.

christopherhesse commented 5 years ago

Thanks for answering this @wenkesj!

dickreuter commented 5 years ago

Put an implementation together here: https://github.com/dickreuter/neuron_poker

It also demonstrates some implementations with reinforcement learning.