jm-tech-power-official/Two Armies
两军大战 (Two Armies) — a lane-based two-army strategy game. You can't see the enemy's rear: send scouts to find out what they're building, counter their units, build walls and towers, and tear down their headquarters. Four AI opponents (including one trained with reinforcement learning) and LAN multiplayer with automatic room discovery. Interface in Simplified Chinese. Windows and Linux builds. 一款分路对战的策略游戏:你看不见敌人的后方。派侦察兵摸清对方在造什么,用相克的兵种、城墙和箭塔打穿防线,拆掉对方大本营。四档电脑 AI(含强化学习训练的学习型 AI),支持局域网联机、自动发现房间。
Recorded from the 0.8.1 game itself, playing the Easy AI. The music was added.
Two Armies (两军大战)
Two Armies is a lane-based real-time strategy game. The map has 5 rows; you are Blue on the left and your opponent is Red on the right. Units leave from the row their building stands in and march along it. There's one goal: tear down the enemy's headquarters. The catch is that you can't see the enemy's rear: to know what they're building, you have to send scouts. Current version: 0.8.1, for Windows and Linux. The game's text is in Simplified Chinese.
- 5 lanes
- Fog of war and scouting
- 7 units that counter each other
- 10 buildings
- 6 gold upgrades
- 4 AI opponents
- Two players on one screen
- LAN play
Build your rear

You start with 150 grain, and your headquarters makes 2 grain a second. Pick a building with a number key, then click an empty cell in your rear:
| Key | Building | Grain | What it does |
|---|---|---|---|
| 1 | Farm | 50 | +3 grain a second; feeds 3 more troops |
| 2 | Gold mine | 50 | +2 gold a second, for upgrades |
| 3 | Barracks | 100 | Spearmen, shieldmen |
| 4 | Stable | 120 | Cavalry, scouts |
| 5 | Range | 100 | Archers, hunters |
| 6 | Workshop | 150 | Catapults |
| 7 | Watchtower | 60 | Exposes enemy scouts within a 5×5 area |
| 8 | Arrow tower | 120 | Shoots enemies in range in its row |
| 9 | Decoy | 30 | Does nothing, but looks to the enemy like a barracks, stable, range, workshop or tower (press 9 again to change) |
| 0 | Wall | 40 | 700 HP and blocks the way; enemies tear it down, or go round if the cell beside it in the next row is empty |
Click one of your training buildings for its first unit, Shift+click for its second. Right-click it to train automatically (off → first unit → second unit → off): it trains whenever it's ready and you have the grain, set per building. Your headquarters is a castle that shoots enemies who reach your innermost two columns, so a few stray troops can't raid it.
Population: each unit takes 1 (a catapult 2). The headquarters feeds 6, each farm 3 more, up to 48, and every 4 population eats 1 grain a second. Expand (E): grow your rear from 5 columns to 6 (400 grain) and 7 (700 grain) for more cells and +4 population, but your front line moves forward too.
Units and counters
| Unit | Grain | Strengths |
|---|---|---|
| Spearman | 25 | Main infantry; double damage to cavalry |
| Shieldman | 40 | Tough and slow; archers do only 40% damage to him |
| Cavalry | 50 | Fast; double damage to archers and catapults |
| Archer | 35 | Ranged; 2.5× damage to spearmen |
| Catapult | 90 | Longest range, built to wreck buildings (3×) and shieldmen (3×), with splash damage; takes 2 population |
| Scout | 15 | Invisible, very fast, doesn't fight; runs into the enemy rear to see it |
| Hunter | 30 | Sees invisible scouts and does them 4× damage; only half damage to other units |
Fog and scouting

You can't see the enemy's rear, and their grain, gold and population show as ???. Any unit of yours that gets into their rear reveals the 3×3 cells around it; when it dies, those cells freeze as a grey afterimage of what you last saw there. Scouts are invisible until a watchtower or a hunter spots them. A decoy costs only 30 grain but looks real to the enemy's scouts.
The computer opponents play by the same rules: they only get what their own side can see, nothing through the fog, and they don't cheat. Outside network games, Tab switches between Blue's view, Red's view and the whole map.

Gold upgrades
Each needs its building first, is bought once, and applies to all your units, including those already on the field:
- ZIron spear, 20 gold: spearmen +3 attack
- XHeavy shield, 25 gold: shieldmen +80 HP
- CFast horse, 20 gold: faster scouts and cavalry
- VCamouflage, 30 gold: a scout must be watched for 3 seconds before it's exposed
- BLongbow, 25 gold: longer archer range
- NFire pot, 30 gold: wider catapult splash
The peace period
Each game opens with a peace period: armies can't cross the midline and nobody fights; only scouts can go out. Press P in the menu to choose off, 60, 90 (the default), 120 or 180 seconds.
Opponents

- Easy AI: builds in a fixed order and trains whatever it can afford.
- Normal AI: watches which row you attack in and trains the counter.
- Hard AI: thinks faster, scouts often, and builds watchtowers, arrow towers and hunters.
- Learned AI: nobody taught it the rules; it learned by playing the computer thousands of times.
- Two players, one screen: on one computer, you control whichever side you click.
- LAN play: one player presses 5 to host (as Blue), the other presses 6 to join (as Red). Joining finds the hosts open on your local network by itself, or you can type an IP; a host running a different version is marked. Online, there's no pausing and no Tab to peek at the other side, and the host's peace period applies.
Start playing
Download from the Releases tab. On Windows, unzip it and run TwoArmies.exe; on Linux, extract the
tar.gz and run TwoArmies. In the menu, press 1–4 to pick a computer opponent, or H for how to play.
- 1–9buildings, 0wall
- Left-click to place / train
- Shift+click: second unit
- Right-click a training building: auto-train
- Right-click empty ground or Q: cancel
- Eexpand your rear
- Z–Nupgrades
- Tabswitch view
- Spacepause, Rrestart
- Mmenu, Ssound
- Escquit
Tell us what you find in the Issues tab.