Unibase Docs
  • Introduction
    • Architecture
    • Core Components
    • Quick Start
  • Membase
    • 📚Architecture
    • Identity
    • Multi Memory
    • Authorization
    • 🚀Quick Start
  • AIP
    • Design
    • Agent Interaction Process
    • Implementation
    • Quick Start
      • Tool
      • Agent
        • Agent-Tool Interaction Via gRPC
        • Agent-Tool Interaction Via SSE
        • Agent-Agent Interaction
      • Chess game
  • Unibase DA
    • DA
    • Storage
    • Quick Start
      • Nodes boostrap
        • Storage Node
        • Validator Node
        • Stream Node
        • Docker
      • Nodes operations
  • Developers
    • Hub
    • SDK
    • API Reference
  • Alpha Testing
    • Testing plan
    • Requirements
    • Chains
  • 🚀Examples
Powered by GitBook
On this page
  1. AIP
  2. Quick Start

Chess game

This example demonstrates a multi-agent system implementing an interactive chess game.

Prerequisites

cd examples/aip_chess_game

Setup and Running

  1. Start Game Moderator

export MEMBASE_ID="<moderator_id>"
export MEMBASE_ACCOUNT="<membase account>"
export MEMBASE_SECRET_KEY="<membase secret key>"
export MEMBASE_TASK_ID="<task id>"
uv run main.py
  1. Start Players The game begins when both black and white players are connected.

export MEMBASE_ID="<player_uuid>"
export MEMBASE_ACCOUNT="<membase account>"
export MEMBASE_SECRET_KEY="<membase secret key>"
export MEMBASE_TASK_ID="<above_task_id>"
uv run role.py --moderator=<above_moderator_id> 
  1. Launch Web Interface To view the chess board in your browser:

uv run app.py  # Access at http://localhost:5000
PreviousAgent-Agent InteractionNextUnibase DA

Last updated 7 days ago