Play liveChoose your opponent
Join
6 lines · 368 Bytes Raw Permalink History
1// The upstream's own AI: wmzy/sanguosha's heuristic scorer (src/ai-mcp/heuristics.ts, what its MCP server returns as
2// recommendedAction), with the targets and cards it leaves open filled in. The same player sits in a room's auto seats.
3import { Heuristic } from '../../referee/sgs.mjs';
4
5const h = new Heuristic();
6export default (obs, legal) => h.act(obs, legal);