public void TestMethod1() { // Arrange PokerAi pokerAi = new PokerAi(Game); pokerAi.PrepareNewTree(); pokerAi.PrepareNewHand(); // Act // Assert }
private void AiTurn() { if (_game.Players[0].Action != PlayerAction.Fold || _game.CurrentRoundNumber() != 5) { if (_prevRound > 2) { _ai.PrepareNewTree(); } if (_game.CurrentPlayerIndex == 1) { _ai.MakeDecision(); if (_game.Players[1].PreviousAction == PlayerAction.Fold) { HandUpdate(); } else { MainUpdate(); } UpdateLog(); } } }