Exemplo n.º 1
0
    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;
    }