miaoda-game-gou-ji-analysis-core
v0.2.0
Published
Pure Pagat Qingdao Gou Ji set analysis, comparison, trigger detection, and bounded play enumeration.
Downloads
368
Maintainers
Readme
miaoda-game-gou-ji-analysis-core
Pure play analysis for fixed Qingdao Gou Ji profile pagat-qingdao-main-v1. It classifies equal-rank groups with twos/jokers, compares responses, detects Gou Ji duel thresholds, and enumerates bounded candidate plays; complete teams, turns, tribute, and scoring live in gou-ji-rules.
pnpm add miaoda-game-gou-ji-analysis-coreconst play = analyzeGouJiPlay(selectedCards);
if (play && (!currentPlay || canBeatGouJiPlay(play, currentPlay))) submit(play);
const options = enumerateGouJiPlays(hand, {maxResults: 128});
if (options.truncated) showMoreIndicator();Ranks order red joker, black joker, 2, Ace through 3; suits do not compare. A 36-card hand can contain many physical subsets, so hint/AI callers must provide maxResults and treat a truncated result as a stable prefix, not an exhaustive list.
