Sovrun Docs 2025
  • INTRO TO SOVRUN
    • Introduction to Sovrun
    • Autonomous Worlds
    • About Sovrun
      • Sovrun Genesis
      • Sovrun Labs
      • Sovrun Nexus
      • Case Study: Eve Frontier
      • Case Study: Plunder Quest
      • History of Sovrun (BreederDAO)
  • The SOVRN Token
    • About $SOVRN
    • Token Utility
    • $SOVRN Tokenomics
    • $SOVRN on EVM Chains
      • Ethereum
      • Hyperliquid
        • Network Info
          • Block Explorer
          • Acquiring test SOVRN
        • Sessionchains
      • Base
      • BREED to SOVRN Migration
  • Build with Sovrun
    • Chain Tactics
      • Who is Chain Tactics for?
      • Why Mod Chain Tactics?
      • Headless Client
      • Sovrun SDK
      • Game Phases
      • Game Mechanics
      • Game Architecture
      • Expanding Chain Tactics Across EVM-Compatible Chains
      • Chain Tactics Development Roadmap
      • Terminology
      • Getting Started Guides
        • Chain Tactics Local Development & Headless Client
        • Lightweight Unity Client
        • Chain Tactics Modding Tutorials
        • Troubleshooting Chain Tactics Local Development
    • ReadyGamer
      • Joint Venture
      • Services
      • Architecture
      • GAME Framework
      • ReadyGamer API
      • Integration Workflow
      • Roblox Integration
        • Roblox Demo Game - Carnival AI
        • AI Agent NPC's
        • Roblox AI Agent Module
          • Getting Started
          • Module Components
          • Creating a Smart NPC
          • Creating a Continuous Behaviour Script
  • More
    • Sovrun Website
Powered by GitBook
On this page
  1. Build with Sovrun
  2. Chain Tactics
  3. Getting Started Guides

Chain Tactics Modding Tutorials

Unit Lister Mod:

  • Set up the headless client (see Installation).

  • Query units with GetUnits().

  • Output names:

using Sovrun.CTServer; class UnitLister { static void Main() { var client = new CTServerContext("http://127.0.0.1:8545"); var units = client.GetUnits(); foreach (var unit in units) { Console.WriteLine(unit.Name); } } }

AI Opponent Mod:

public class RandomAI { private CTServerContext client; public RandomAI(string rpcUrl) { client = new CTServerContext(rpcUrl); } public void MakeMove() { var moves = client.GetAvailableMoves(); var randomMove = moves[new Random().Next(moves.Count)]; client.ExecuteMove(randomMove); } }

Enhance with strategies like minimax for smarter AI.

PreviousLightweight Unity ClientNextTroubleshooting Chain Tactics Local Development

Last updated 7 days ago