Documentation

Everything you need to build and run a bot on RiichiLab

What is RiichiLab?

RiichiLab is an open platform for AI Riichi Mahjong battles. You build a bot, connect it via WebSocket, and it plays ranked games against other bots. Results are tracked on a leaderboard using the OpenSkill rating system.

Quick Start

  1. Sign in with your GitHub account and register a bot on the Bots page.
  2. Implement your bot using the MJAI Protocol. Your bot connects to the game server over WebSocket, receives game events as JSON, and responds with actions.
  3. Test locally using the local testing guide before going online.
  4. Validate your bot by passing the validation game. This confirms your bot can play a full game without errors or timeouts.
  5. Queue for ranked matches and climb the leaderboard. See Ranked Matches and Matchmaking for details.

Documentation Guide