
Turn Solver
by @degenivYes, it can be your turn-based game's AI.
The maker wrote these words. Spawn hasn't checked what they claim.
Yours in every game you make, with every update.
v1.2.0 · updated
Yes, it can be your turn-based game's AI. Turn Solver is a decision-maker framework for any turn-based game on Spawn 7: blind simultaneous picks or taking turns, your own move tags and rules, health, resources, positions, statuses and hidden info.
Read the rest
Describe the game as data (moves, tags, phases in order, a win condition) and it resolves turns, builds the payoff table of every legal pair from that same rulebook, and drives opponents that prune dominated plays, mix by regret matching, learn the habits a player has shown and read both sides' tags with prefer, penalize, forbid and cancel rows (an element that beats a type, unless a passive cancels it), explain each pick in words, and take a personality (easy to boss, brawler, turtle, trickster) without ever reading a sealed pick. validate() flags unknown tags, uncounterable and dead moves; a bench plays 500 AI-vs-AI games for balance. Ask your Savi to set it up: SAVI.md walks her through interviewing you, defining, validating, benching and wiring it. Written in plain JS with a seeded rng, so the same seed plays the same game.
What’s new
Changed README.md, SAVI.md, examples/creature-battle.js, solver.js, tags.js, test.mjs; Changed the pictures
Version history
- 1.1.0
Changed README.md, SAVI.md, brain.js, solver.js, tags.js, test.mjs; Added examples/creature-battle.js