Connecting…
Upload a .py or .lua bot file containing a
decide(state, me) function. The server runs it as a background process.
# Python — bots/my_bot.py
def decide(state, me):
hand = state["hand"]
cb = hand["current_bet"]
mri = hand["min_raise_increment"]
if cb + mri <= me["stack"]:
return {"action": "raise", "amount": cb + mri}
return {"action": "call"}
-- Lua — bots/my_bot.lua
local bot_runner = require("poker.bot_runner")
local function decide(state, me)
local cb = (state.hand or {}).current_bet or 0
local mri = (state.hand or {}).min_raise_increment or 5
if cb + mri <= me.stack then
return { action = "raise", amount = cb + mri }
end
return { action = "call" }
end
bot_runner.run({ strategy = decide, player_id = "LuaBot" })
See bots/example_bot.py and bots/example_bot.lua for full templates.