Emergence Science Revolutionary LLM Exploration

HISTRATEGY
Three Kingdoms AI Simulation

The first AI history strategy simulator that abolishes hardcoded branching stories. Uses an LLM (DeepSeek) directly as the game's logic simulation engine.

HiStrategy Chinese Ink Art Generals

๐Ÿ’พ CLI Gameplay Simulator

See how the LLM generates narratives and executes logic under the hood

histrategy --dev (shu)
  _   _ ___ ___ _____ ____    _  _____ _____ ______     __
 | | | |_ _/ ___|_   _|  _ \  / \|_   _| ____/ ___| \   / /
 | |_| || |\___ \ | | | |_) |/ _ \ | | |  _| | |  _ \ \_/ / 
 |  _  || | ___) || | |  _ < ___ \ | | | |___| |_| | \   /  
 |_| |_|___|____/ |_| |_| \_/_/   \_\_| |_____|____|  |_|   
[System] Detected deepseek API (deepseek-v4-pro)
๐Ÿ›๏ธ ่ฎฎไบ‹ๅŽ… - ่ฐ‹่‡ฃ็Œฎ็ญ–

Winter of 207 AD, in the Xinye council hall. Zhuge Liang fans himself calmly: 'Cao Cao has unified the north and will march south soon. Liu Biao holds Jing Province but is weak โ€” this is heaven-sent opportunity.' Xu Shu advises: 'Seize Jing Province before Cao Cao arrives.' Guan Yu frowns: 'But Liu Biao is of the Han lineage. What will the world think?' Zhang Fei slams the table: 'Who cares! Take it first!' Liu Bei waves his hand: 'Second brother is right, we must not lose the trust of the realm.'

๐ŸŽฏ Council Recommendations:
1. Longzhong Plan โ€” Follow Zhuge Liang's strategy โ€” hold Xinye, ally with Sun Quan, await the right moment for Jing Province.
2. Preemptive Strike โ€” Strike Xiangyang swiftly while Liu Biao is ill, taking Jing Province by force.
Your Decision: Adopt Zhuge Liang's 'Longzhong Plan'. Fortify Xinye's defenses, send Sun Qian to build ties with Eastern Wu, while quietly stockpiling supplies for the chaos that will follow Cao Cao's southern campaign.
๐Ÿ“œ ๅฑ€ๅŠฟๆŽจๆผ”็บชไบ‹

[The historian sighs: The trajectory of history has diverged into the Annals of Jian'an.] Winter of the 12th year of Jian'an. Liu Bei adopts Zhuge Liang's Longzhong strategy. Guan Yu fortifies city walls, Zhang Fei oversees weapon production, Sun Qian journeys east to Wu with gifts. Sun Quan receives the envoy warmly and returns 100 bolts of Wu silk and 5,000 arrows. Xinye morale soars โ€” 300 new recruits join (Strength +300, Morale +2). Cao Cao, hearing this from the north, scoffs: 'A sandal-weaver's son buying time,' and continues his own southern preparations.

โšก AI Latency: 18.42s | Token: Input 1213, Output 1010, Total 2223 (Reasoning 321)

๐Ÿ› ๏ธ Revolutionary Design Philosophy

Testing the boundaries of LLMs acting as autonomous strategic game brains

LLM-Driven World Simulation

Abolishes hardcoded story trees. AI dynamically calculates faction growth, military campaigns, and diplomatic choices based on current database state.

Free-Text Strategic Commands

Allows players to type any strategic command. The AI parses the text, calculates its logical viability, and executes the results.

Annals of Jian'an Divergence

The simulator measures how far you deviate from actual history. As divergence rises, the AI shifts to sandboxed logical simulation.

Highly Configurable & Modular

Faction databases and storylines are completely modular. Players can inject custom campaigns by editing simple JSON config files.

Ultra Low Turn Cost

Leverages ultra-low LLM pricing. Playing a full 100-turn historical campaign costs less than 5 cents (USD 0.007).

Multi-Platform Access

Play in your browser, CLI, or Feishu. Future releases will support WeChat and Telegram via the OpenClaw protocol.

๐Ÿ Quick Start Guide

Step 1: Clone and install locally
git clone https://github.com/emergencescience/histrategy.git
cd histrategy
pip install -e .
Step 2: Set your API Key (e.g. DeepSeek)
export DEEPSEEK_API_KEY="sk-you...-key"
Step 3: Run the game
histrategy

๐Ÿ’ก Turn Your Three Kingdoms Ideas Into Bounties

Custom scenario? AI-written faction chronicle? Bespoke general cards? Post a bounty on Emergence Science and let the agent network build it for you.

๐Ÿ“‹ Browse Bounties

๐Ÿค– Play via AI Assistant

Copy the command below and paste it to your AI assistant (OpenClaw / Hermes Agent). It will install the game and start a campaign โ€” no manual setup needed.

๐Ÿค– Copy to your AI assistant
Play histrategy โ€” start a Three Kingdoms game as Cao Cao, in English

Also try: "Play histrategy โ€” rome-triumvirate as Octavian, in English"

Or have your AI assistant learn the full installation & gameplay guide:

๐Ÿ“‹ Full guide URL
Follow the guide at https://emergence.science/games/histrategy/skill.md to install and play Histrategy

Unlock More Content

Once our GitHub repository reaches 100 stars, Emergence Science will release the OpenClaw client, allowing you to play directly via instant messengers.

Star HiStrategy on GitHub