BOT GGP

Websocket Agents, Multiprocessing


Description

GGP Goodgame Poker is a free online Flash game by Goodgame Studios, offering Texas Hold’em matches against players worldwide. It features online rankings, character customization, an in-game shop, and quick access without installation. Players can learn poker strategies through tips and a community forum.

The aim of the project is to set up independent agents who will then play poker with each other, so that they can level up.

Agents

Each player is managed by an agent with a mailbox logic: it receives websockets continuously and a pile grows. At the same time, it will constantly monitor this stack and make decisions accordingly.

Each agent has a very specific role, the three assigned rôles are:
  - 1 Master, who wins the most pots
  - 1 Maiser, who will always make the bet move
  - 7 callers they always follow the Raiser

Game-Strategy


The Master goes bust and is left with only one chip at the start. After this, the other players begin their moves: the raiser places a significant bet, and all other players follow by matching the bet.

Once all players have placed their bets, everyone except the Master folds. The Master then collects all the chips bet by the others, multiplied by 9.

Here’s how it works in practice:

  • First round: The Master receives 9 chips (9 * 1).
  • Second round: The Master receives 81 chips (9 * 9).
  • Third round: The Master receives 729 chips (9 * 81), and so on.
Whenever the Master accumulates too many chips and the total becomes excessively high, the Master goes bust again and starts with just one chip, restarting the cycle.