public static void LaunchGameTwo() { Player maxence = new Player(150); FinalBoss finalBoss = new FinalBoss(250); while (maxence.Alive && finalBoss.alive) { maxence.Fight(finalBoss); if (finalBoss.alive) { finalBoss.Fight(maxence); } } if (maxence.Alive) { Console.WriteLine("Amazing, you saved the princess !"); } else { Console.WriteLine("Game over..."); } }
public void Fight(FinalBoss finalBoss) { int resultPoints = dice.LaunchDice(25); finalBoss.SuffersDamage(resultPoints); }