public AI(Rules rules) { m_rules = rules; InitGame(); //while (m_possibles.Count > 0) { // PlayMove(); //} //Console.WriteLine("Found combination in {0} tries!", m_tries.Count); //DisplayCombination(m_tries[m_tries.Count -1]); //Console.WriteLine("Press any key to continue..."); //Console.ReadKey(); }
public void StartGame() { m_rules = Rules.Hells; m_ai = new AI(m_rules); Console.WriteLine("Let's play a game of Hells!"); Console.WriteLine("I will provide you with guesses and you will tell me their evaluation."); Console.WriteLine("Give me just a few seconds to initialize everything..."); while (true) { var guess = m_ai.GenerateGuess(); PrintGuess(guess); var evaluation = GetEvaluation(); m_ai.CommitGuess(guess, evaluation); } }