public void EvaluateComplexGame() { var board = EngineTests.GenerateComplexGame(); var evaluation = BoardEvaluator.Evaluate(board); this.TestContext.WriteLine("Evaluation = " + evaluation.ToString(CultureInfo.CurrentCulture)); Assert.IsTrue(evaluation < 0); // -3 }
public void GenerateMoveForComplexGame() { var board = EngineTests.GenerateComplexGame(); var engine = new RandomEngine(); var generatedMove = engine.GenerateMove(board.Clone()); this.TestContext.WriteLine(generatedMove.ToString()); this.TestContext.WriteLine("Evaluations: " + engine.Evaluations.ToString(CultureInfo.CurrentCulture)); this.TestContext.WriteLine("Visitations: " + engine.Visitations.ToString(CultureInfo.CurrentCulture)); board.MovePiece(generatedMove); }