예제 #1
0
        // playerName  : 推論対象のプレイヤーの名前
        // visibleCards: プレイヤーに見えているカード列
        // allCards    : 全カード列
        // order       : 手番の順序
        public _Inference(string playerName, IEnumerable <_VisibleCard> visibleCards, IEnumerable <_Card> allCards, _PlayerOrder order)
        {
            _PlayerName   = playerName;
            _VisibleCards = visibleCards;
            _AllCards     = allCards;
            _Order        = order;

            _Memo = new Dictionary <_MemoKey, PlayerAnswer>(_MemoKeyEqualityComparer.Instance);
        }
예제 #2
0
 // name: プレイヤーの名前
 // visibleCards: 他プレイヤーのカード
 // allCards    : 全カード
 // order       : 手番の順序
 public _Player(string name, IEnumerable <_VisibleCard> visibleCards, IEnumerable <_Card> allCards, _PlayerOrder order)
 {
     Name       = name;
     _Inference = new _Inference(name, visibleCards, allCards, order);
 }