roomai

A toolkit for developing and comparing AI-bots of imperfect information and imcomplete information games.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

307

Maintenance

Last Commit

2yrs ago

Contributors

9

Package

Dependencies

0

License

MIT

Categories

Readme

This project is stoped since there are better projects:

https://github.com/dickreuter/Poker

https://github.com/ishikota/PyPokerEngine

RoomAI

Build Status Documentation Status PyPI version

RoomAI is a toolkit for developing AI-bots of KuhnPoker, Texas Holdem and Bang!.

Install and Get Started

You can install roomai with pip

pip install roomai

try your first AI-bot

#!/bin/python
from roomai.games. import *;
import roomai.common

class KuhnPokerExamplePlayer(roomai.games.common.AbstractPlayer):
    def receive_info(self, info):
        if info.person_state_history[-1].available_actions is not None:
            self.available_actions = info.person_state_history[-1].available_actions

    def take_action(self):
        values = self.available_actions.values()
        return list(values)[int(random.random() * len(values))]

    def reset(self):
        pass

if __name__ == "__main__":
        players = [KuhnPokerExamplePlayer() for i in range(2)] + [roomai.games.common.RandomPlayerChance()]
        # RandomChancePlayer is the chance player with the uniform distribution over every output
        env = roomai.games.kuhnpoker.KuhnPokerEnv()
        scores = env.compete_silent(env, players)
        print(scores)

For More Information

Contributors

If you would like to contribute to the project, please send me (lili1987mail at gmail.com) an email. We are always happy for more help.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial