public void Duel() { DisableButtons(); opponent.SelectAction(); if (GetGameStatus().Equals("Win")) { player.IncreaseScore(); UpdatePlayerScore("Player Score : " + player.GetScore()); } else if (GetGameStatus().Equals("Lose")) { opponent.IncreaseScore(); UpdateAIScore("Ai Score : " + opponent.GetScore()); } else { //Just draw nothing happen. } StartCoroutine(ClearSelectedFromBoth()); }
public void TestInitialState() { Assert.AreEqual(0, ai.GetScore()); Assert.AreEqual(RockPaperScissorsEnum.RPS.ROCK, ai.choice); }