Skip to content

Cell Wars

Out-capture the AI in this turn-based territory strategy. Clone, jump, convert — a thinking game that fits a coffee break.

By Daily AI Games Team Published Oct 13, 2026 Updated Oct 18, 2026 1,150 plays

1,150 plays · runs in a sandboxed frame

Share this game: X Facebook Reddit

How to Play

Click or tap one of your cells, then pick a highlighted destination: adjacent = clone, two away = jump. Enemy neighbors of your landing cell convert to your color.

Game Preview

Cell Wars gameplay screenshot
Cell Wars in action — an AI-generated game you can play free in your browser.

About Cell Wars

Cell Wars is a turn-based territory game that proves strategy does not need a hundred-hour tutorial. The board is a 7x7 grid of cells, and you control one color while an AI opponent controls the other. On your turn you pick one of your cells and either clone it to an adjacent empty square — keeping the original — or jump it two squares away, sacrificing the source. The heart of the game is conversion: every enemy cell adjacent to your landing spot flips to your color. The board fills up move by move, and when it is full, whoever owns more cells wins. It is a complete, genuinely deep abstract strategy game with rules you can fully understand in ninety seconds.

The depth comes from a constant tension that every Ataxx-style game carries: cloning grows your numbers but puts weak cells everywhere; jumping keeps you compact but cedes territory. Add moving blocker cells that neither side can capture, and every turn becomes a genuine puzzle of geometry and timing. Games run five to ten minutes — long enough to matter, short enough for a break — and the built-in difficulty selector means the game grows with you. Easy mode makes almost random moves and is beatable by anyone; Normal plays a real positional game; Hard looks ahead at your best reply before committing, and it punishes greed without mercy.

The interface is clean on purpose: tap or click a highlighted cell to see your options, confirm to move, and captured cells flip with a short animation so you can always read what just happened. A score bar runs along the top showing the territory balance in real time, which makes comebacks visible and defeats educational. On desktop it plays by mouse; on phones everything is thumb-sized taps.

As an AI-generated game, Cell Wars is our most interesting experiment, because the hard part was not the rules — it was the opponent. Gemini implemented the ruleset cleanly, but the first AI player was a pushover. Our strategy-ai-opponent prompt made the difference: it forced explicit scoring weights (captures over mobility over safety) and a one-ply lookahead for Hard mode. The result is an AI that punishes mistakes without feeling unfair, and a prompt in our library that any strategy game idea can reuse.

How This Game Was Generated

Rules generated with Gemini 3 in Google AI Studio in one pass. The opponent went through our strategy-ai-opponent prompt twice: first to add heuristic scoring weights, then to add one-ply lookahead for Hard mode. Easy mode intentionally keeps some randomness.

The Prompt Behind This Game

Show the prompt used to generate Cell Wars
Build a turn-based territory strategy game as one self-contained HTML file (inline JS, no libraries). Game: [describe rules precisely, e.g. "7x7 Ataxx-style board: click one of your cells to clone to an adjacent empty cell, or jump 2 cells (the source cell is emptied); all enemy neighbors of the destination convert to your color; board fills = game over; more cells wins"].

The AI opponent is the critical requirement:
- Implement opponent as a heuristic scoring function over every legal move: prefer moves that capture the most enemy cells, that increase total mobility (adjacent empty cells), and that avoid leaving a cell vulnerable to immediate recapture. Weight captures > mobility > safety.
- Evaluate ALL legal moves every turn (board is small); pick the best with a small random tie-break so games differ.
- Add a difficulty switch: Easy = random legal move, Normal = heuristic, Hard = heuristic + 1-ply lookahead that maximizes (my gain - your best reply gain).
- Move times must be under 100ms; no blocking the UI thread noticeably.

UI: click/tap to move; last-move highlight; simple animated capture flips; score bar; win/lose overlay with restart; difficulty selector on the start screen. 960x540 letterboxed, responsive, touch-first.

After the code, print the opponent evaluation function and explain each weight in one line.
Open in the prompt library for tips and variations

Similar AI Games