
GALAXY BOT ACADEMY
From Your First Line of Code to Your First Poker Bot.
Learn how poker bots think, make decisions, recognize betting situations, calculate probabilities, and compete. Whether you've never written code before or you're developing sophisticated poker algorithms, the Galaxy Bot Academy gives you a practical path from programming fundamentals to your own working Texas Hold'em bot.
Learn the loop. Then improve the decision.
The Galaxy server deals and enforces the rules. Your strategy reads an authorized observation, selects one legal action, and lets the existing adapter carry it back. Begin with a safe working bot; add mathematics and complexity only after the connection and tests are reliable.
Getting Started With Poker Bot Programming
Learn what a bot receives, what it decides, and how a safe first rule works.
What Is a Poker Bot?
Distinguish the game engine from your decision program.
01.02How a Bot Makes a Decision
Follow one observation through validation, decision, and reply.
01.03Programming Fundamentals for Bot Builders
Use variables, types, branches, functions, loops, collections, JSON, and error handling.
01.04Build Your First Decision Function
Return a simple legal action without guessing raise sizes.
01.05Understand the Galaxy Bot Environment
Know where registration, credentials, adapter, and bankroll fit.
Programming Languages and Coding Techniques
Run a strategy through the adapter in Python, JavaScript, TypeScript, or another JSON-line capable language.
Python: A Complete JSON-Line Strategy
Write and run a Python process that answers every adapter observation.
02.02JavaScript and Node.js: Streaming Decisions
Parse JSON-line input and write a legal JSON-line answer in Node.js.
02.03TypeScript: Types, Validation, and Strategy
Model the needed observation fields and run type-safe strategy code.
02.04Other Languages and the JSON-Line Contract
Port the strategy to any language that can read and write JSON lines.
02.05Coding Techniques for Reliable Bots
Structure strategy code so it can be tested and debugged.
Poker Mathematics and Decision Algorithms
Connect hand strength, position, pot odds, equity, EV, stacks, and street-by-street decisions.
Hand Evaluation, Kickers, and Ties
Compare five-card hands and understand best-five-of-seven selection.
03.02Position and Betting Order
Read button and blinds, including heads-up exceptions.
03.03Pot Odds and Break-Even Equity
Compute the equity required for a call under stated assumptions.
03.04Equity, Ranges, Draws, and Outs
Distinguish known-card probabilities from range-based equity estimates.
03.05Expected Value, Betting, and Fold Equity
Compare actions with explicit outcomes and assumptions.
03.06Effective Stacks and Stack-to-Pot Ratio
Constrain betting plans by the smaller remaining stack.
03.07Preflop Ranges and Three-Bets
Build position-aware starting-hand categories without treating charts as guarantees.
03.08Flop Texture, Turn Adjustments, and River Decisions
Connect board changes to value, draws, and bluff-catching.
Bot Architecture and Artificial Intelligence
Compare rules, trees, probability, simulation, opponent adaptation, and learning systems.
Rule-Based Bots
Turn explicit poker conditions into a testable decision order.
04.02Decision Trees and State Machines
Separate street, stack depth, and betting context into explicit branches.
04.03Probability-Based Decisions
Compare an equity estimate with the price of a legal call.
04.04Monte Carlo Equity Estimation
Describe a bounded simulation with valid hidden-card sampling.
04.05Opponent-Adaptive Bots
Use observed tendencies with correct opportunities and sample sizes.
04.06Machine Learning and Reinforcement Learning
Understand training data, rewards, evaluation, and the limits of small samples.
04.07Hybrid Bots: Combine Methods Carefully
Place rules, ranges, equity, and bounded simulation in one safe decision pipeline.
Connecting Your Bot to Galaxy Arena
Follow the published adapter and flawless-bot-1 protocol from registration to a safe exit.
Account, Registration, and Credential Safety
Register a developer bot and protect its one-time API credential.
05.02Server, Adapter, Strategy, and Observation
Trace each message without confusing transport and strategy.
05.03Read Observations and Return Legal Actions
Use the exact flawless-bot-1 fields and raise-to semantics.
05.04Run a Complete Beginner Bot
Download the published adapter, connect a strategy, and join a table.
05.05Connection Errors, Timeouts, and Safe Exit
Diagnose common failures and release a seat safely.
Testing, Debugging, and Improving Performance
Use repeatable fixtures, recorded hands, sound denominators, and cautious iteration.
Local Tests and Legal-Action Fixtures
Test a strategy before spending virtual chips at a table.
06.02Debug Illegal Actions and Connection Failures
Diagnose raise sizing, stale observations, and adapter failures.
06.03Read Recorded Hands and Results
Reconstruct decisions from public action order and authorized cards.
06.04Measure Performance Without Inventing Results
Use correct denominators and separate variance from evidence.
06.05Analyze Opponents With Proper Samples
Record tendencies without overfitting or misattributing results.
06.06Improve One Rule at a Time
Test strategy changes with repeatable evidence and controlled risk.
Different bots solve different problems.
These are educational tradeoffs, not performance claims. Every approach still has to obey Galaxy's legal actions and response deadline.
| Approach | Strength | Limit | Compute | Typical level |
|---|---|---|---|---|
| Rules | Clear and fast | Brittle against unfamiliar spots | Low | Beginner |
| Decision tree | Context is visible | Branches grow quickly | Low | Intermediate |
| Equity / probability | Uses call price | Depends on opponent ranges | Medium | Intermediate |
| Monte Carlo | Handles complex runouts | Sampling error and time cost | Medium–high | Advanced |
| Opponent-adaptive | Responds to observed habits | Small-sample overfitting | Medium | Advanced |
| Machine learning | Can model complex patterns | Needs reliable data and evaluation | High | Advanced |
| Hybrid | Combines strengths | More integration and test work | Variable | Advanced |
Your first live decision starts with one legal action.
Use the published adapter and protocol. Register a developer-connected bot when you're ready to seat it. Galaxy Arena uses virtual chips only, with no cash wagering or redeemable prizes.