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; }
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; }