コード例 #1
0
 public TurnState(string name, Main.Turn mTurn, Main.Turn nextTurn, CardsInHand mCards, Deck drawDeck, Deck discardDeck)
 {
     this.name        = name;
     this.mTurn       = mTurn;
     this.nextTurn    = nextTurn;
     this.mCards      = mCards;
     this.drawDeck    = drawDeck;
     this.discardDeck = discardDeck;
 }
コード例 #2
0
ファイル: MCTSState.cs プロジェクト: Kayaaa76/AICherki
    public MCTSState(Main.Turn currentTurn, Deck drawDeck, Deck discardDeck, CardsInHand humanCards, CardsInHand AICards, bool hasDrawn, Card lastDiscard, CherkiMachineState.SourceDeck lastDrawDeck)
    {
        this.drawDeck    = new Deck(drawDeck.ShallowClone());
        this.discardDeck = new Deck(discardDeck.ShallowClone());
        this.humanCards  = new CardsInHand(humanCards.ShallowClone());
        this.AICards     = new CardsInHand(AICards.ShallowClone());

        if (lastDiscard == null)
        {
            this.lastDiscard = null;
        }
        else
        {
            this.lastDiscard = lastDiscard;
        }

        this.currentTurn  = currentTurn;
        this.hasDrawn     = hasDrawn;
        this.stateResult  = Result.None;
        this.lastDrawDeck = lastDrawDeck;
    }