Botpot
Visit our website
  • Fundamentals
    • Botpot overview
    • Get action
      • Get action: game state
      • Get action: API object
      • Get action: action object
    • Specialized game concepts
      • Get action: ref data
      • Game settings
    • Botpot architecture
  • Games
    • Creating your first bot
    • Understanding game logic
    • Explore game documentations
      • Tic-Tac-Toe
      • Quoridor
      • Connect Four
      • Battleship
      • Virus War
      • Dots and Boxes
      • Hex
      • Reversi
      • Gomoku
      • Mancala
      • Uno
      • Big 2
      • Snake & Tetris
      • Checker
      • Generals
      • Blokus
      • Wordle
      • Chinese Checker
Powered by GitBook
On this page

Was this helpful?

  1. Fundamentals

Get action

The Get Action function is what a user will code up, which dictates how the bot will run.

The function takes game state and api as inputs. The game state describes the state of the world. The API object contains helpful methods to make coding easier.

The function should return an action object, which is the action the bot wishes to perform on its turn.

Last updated 1 year ago

Was this helpful?