class CwCardUtils::DeckComparator
Constants
- WEIGHTS
Attributes
Public Class Methods
Source
# File lib/cw_card_utils/deck_comparator.rb, line 23 def initialize(deck_a, deck_b) @deck_a = deck_a @deck_b = deck_b @analysis = {} end
Public: Create a comparator for two decks. 日本語: 2つのデッキを対象にコンパレータを作成します。
@param deck_a [CwCardUtils::DecklistParser::Deck] 比較対象Aのデッキ@param deck_b [CwCardUtils::DecklistParser::Deck] 比較対象Bのデッキ@return [void]
Public Instance Methods
Source
# File lib/cw_card_utils/deck_comparator.rb, line 43 def compare results = { on_play: matchup_scenario(on_play: true), on_draw: matchup_scenario(on_play: false), } @analysis = results end
Public: Compare decks for on-play and on-draw scenarios. 日本語: 先手/後手の両シナリオで比較します。
Intent (EN): Produces two analyses (on the play / on the draw) combining archetype, curve segmentation, synergy hit-rate, and interaction density. A weighted heuristic yields Deck A’s win rate and a favored label, plus explanatory notes.
意図 (JA): アーキタイプ、カーブ分割、シナジー成立率、インタラクション密度を統合し、先手/後手の 2 通りの分析を生成します。重み付きヒューリスティックによりデッキAの勝率と有利側のラベルを算出し、説明的なノートを付与します。
@return [Hash] { on_play: Hash, on_draw: Hash }