public void SmartbotGenerateChoiceTest(PlaysEnum oldPlay, PlaysEnum newPlay) { //Arrange SmartBot bot = new SmartBot(); bot.callback.Invoke(oldPlay, PlaysEnum.Paper, GameResults.Undecided); //Act var botNextPlay = bot.Play(); //Assert Assert.AreEqual(newPlay, botNextPlay); }
public int DecideWinner(PlaysEnum play1, PlaysEnum play2) { return(playsEnumHierarchy[(int)play1, (int)play2]); }
public static void AfterRoundCallback(PlaysEnum player1Play, PlaysEnum player2Play, GameResults result) { Console.WriteLine("Player 1:" + player1Play + " Player 2: " + player2Play); Console.WriteLine("Round result: " + result + '\n'); }