PINE LIBRARY

MahjongAIEngine

156
Combinatoric Full Matrix Suit & Structure Partitioning Module [Pine Script v6 Library]

EXECUTIVE SUMMARY
This specialized library handles heavy multi-set partition checks, isolating specific matrix dimensions to verify advanced structural alignments. By offloading resource-intensive loop matrices, it prevents AST node exhaustion in parent script containers.

EXPORTED FUNCTIONS & QUANTITATIVE LOGIC
- check_somete(int[] counts): Quantifies the exact concentration of elements across independent suit boundaries (Indices 0-8, 9-17, 18-26, and 27-33). It returns a tuple `[is_chinitsu, is_honitsu]` based on structural suit isolation mathematics, identifying full or partial flush configurations.
- is_toitoi(int[] counts): Evaluates the complete matrix row states to verify if the count of identical elements forming triplet formations equals exactly 4. It scans the integrated index space, filtering out any sequential data configurations.

概要
この特化型ライブラリは、高度な構造的整列を検証するために、特定の行列次元を分離して高負荷なマルチセット・パーティションチェックを処理します。リソースを大量に消費するループマトリックスをオフロードすることで、親スクリプトコンテナ内でのASTノードの枯渇を防止します。

エクスポート関数と定量的ロジック
- check_somete(int[] counts): 独立したスート境界(インデックス0-8、9-17、18-26、および27-33)にわたる要素の正確な集中度を定量化します。構造的な分離数学に基づいてタプル `[is_chinitsu, is_honitsu]` を返し、清一色または混一色の構成を識別します。
- is_toitoi(int[] counts): 行列全体の行状態を評価し、トリプレット構成(3枚組)を形成する同一要素の数が正確に4に等しいかどうかを検証します。統合されたインデックス空間を走査し、シーケンス(順子)データ構成を完全に排除します。

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.