All Projects → pokerwars → pokerwars.io-starterbot-python

pokerwars / pokerwars.io-starterbot-python

Licence: other
A starter bot written in python for the pokerwars.io platform. To play: pull this code, register on pokerwars.io, get your API token and play!

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to pokerwars.io-starterbot-python

cypherpoker.js
An open source peer-to-peer poker platform with cryptocurrency integration written in JavaScript.
Stars: ✭ 72 (+94.59%)
Mutual labels:  poker, poker-game
NextCommunity.github.io
Join FREE: Community of open-source programmers and software engineers.
Stars: ✭ 29 (-21.62%)
Mutual labels:  strategy
BlueVGA
VGA library for STM32F103C (BluePill) that can manipulate a screen with 28x30 tiles with 8x8 pixels each, in a total resolution of 224x240 pixels with 8 colors using a very low footprint
Stars: ✭ 39 (+5.41%)
Mutual labels:  games
mamesaver
Mamesaver is a mame emulated screensaver - get all the good ol' games playing their demo modes while you procrastinate and enjoy!
Stars: ✭ 26 (-29.73%)
Mutual labels:  games
EtherEngine
简明易用的 Lua 跨平台游戏接口
Stars: ✭ 132 (+256.76%)
Mutual labels:  games
best AI papers 2021
A curated list of the latest breakthroughs in AI (in 2021) by release date with a clear video explanation, link to a more in-depth article, and code.
Stars: ✭ 2,740 (+7305.41%)
Mutual labels:  artificialintelligence
Jetpack-Joyride-CE
A port of the iOS and Android Jetpack Joyride game for smartphones for the TI-84 Plus CE graphing calculators.
Stars: ✭ 22 (-40.54%)
Mutual labels:  games
mlf-core
CPU and GPU deterministic and therefore fully reproducible machine learning pipelines using MLflow.
Stars: ✭ 32 (-13.51%)
Mutual labels:  artificialintelligence
GTA-One-Liners
A collection of gifs made out of almost every dialogue in GTA and other games.
Stars: ✭ 37 (+0%)
Mutual labels:  games
sar2
Search and Rescue II. Helicopter flight simulator for Linux and OSX.
Stars: ✭ 20 (-45.95%)
Mutual labels:  games
Discord-Games
A library for making implementing conventional games into your discord bot, easier.
Stars: ✭ 31 (-16.22%)
Mutual labels:  games
phaser-mario
Mario-like class for Phaser
Stars: ✭ 19 (-48.65%)
Mutual labels:  games
gust tools
A set of utilities for dealing with Gust (Koei Tecmo) PC games files
Stars: ✭ 117 (+216.22%)
Mutual labels:  games
MHW-Shop-Editor
Monster Hunter World Provisions Stockpile Shop Editor
Stars: ✭ 52 (+40.54%)
Mutual labels:  games
HandyRL
HandyRL is a handy and simple framework based on Python and PyTorch for distributed reinforcement learning that is applicable to your own environments.
Stars: ✭ 228 (+516.22%)
Mutual labels:  games
sirius
Modern coffeescript/javascript framework
Stars: ✭ 20 (-45.95%)
Mutual labels:  strategy
Unity-Visual-Behavior-Tree
Reactive Visual Scripting Behavior Tree Tool for Unity 2018.x+
Stars: ✭ 36 (-2.7%)
Mutual labels:  artificialintelligence
LudiiExampleAI
Project with examples for the implementation of third-party AI algorithms / agents for the Ludii general game system.
Stars: ✭ 20 (-45.95%)
Mutual labels:  games
uno-game
🎴 An UNO Game made in Javascript
Stars: ✭ 93 (+151.35%)
Mutual labels:  games
WildWorld
Sandbox freestyle multiplayer game/engine in LÖVE/LUA.
Stars: ✭ 35 (-5.41%)
Mutual labels:  games

pokerwars.io-starterbot-python

This is a simple example of how you could implement a pokerwars.io bot with Python and Bottle. This bot will fold every hand, you should change this and try to implement your own strategy!

Quick start

A few requirements to play:

  • have python installed
  • make sure that the computer where your bot runs is visible from the internet, so we can communicate with it. This is a useful service to double check this. Bot default port is 3000, but you can change this on the server.js file. If you need help to open a port on your router check this guide or contact us. We are always willing to help you.
  • Register with us and retrieve your API token and username.
  • check out this repo with git or download it from this link.
  • in the code you just downloaded, rename .env_example as .env and update with your username, API token and bot ip address:
USERNAME=insert here your bot username, find it at https://www.pokerwars.io/profile
API_TOKEN=insert here your api token, find it at https://www.pokerwars.io/token
BOT_ENDPOINT=insert here your bot ip address. i.e.: http://1.2.3.4:3000

Now you can implement your own poker strategy and play!

Play!

Now you are ready to run the bot!

Install dependencies:

$ pip install -r requirements.txt

Run the bot:

$ python starterbot.py

The bot will try to subscribe to pokerwars.io when it starts up. If no errors happens, it will start playing straightaway, otherwise you should see an error. The most common is that we cannot see your bot, please double check your bot is visible from the internet and you have configured your router correctly. If you do not have access to your router or your bot is behind a firewall, try ngrok.

Playing on Glitch.com?

It's easy:

  • Import this repo into a new Glitch project
  • Check the Live App URL for your project under Share (it will look like https://<MY_POKERWARS_BOT>.glitch.me), you will use it as your BOT_ENDPOINT
  • Update your .env file as described above
  • Start remixing!

Have fun!

Bot subscription to pokerwars

When the bot starts up, the subscribe() method waits for its /pokerwars.io/ping endpoint to become available before subscribing the bot with pokerwars.io. This lets us know that your bot is ready to play and if we can ping your bot then it will be added to the next available tournament.

If the subscription request is not accepted or fails, for whatever reason, the bot will exit.

Extending this bot

If something is not clear in this code, refer to also to our documentation for the structure and content of the data we send to your bot. How you choose to manipulate that information to inform your bot's strategy is up to you!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].