static void Main(string[] args) { IOutputService message = new ConsoleOutput(); message.WelcomeMessage(); IPlayer playerOne = new Player(); IPlayer playerTwo = new Player(); IRegistrationService reg = new CharacterRegistration(); reg.Register(playerOne); Console.Clear(); reg.Register(playerTwo); Console.Clear(); message.GetPlayerInfo(playerOne); message.GetPlayerInfo(playerTwo); Console.ReadLine(); Console.Clear(); ICombatService combat = new CombatLogic(); combat.Battle(playerOne, playerTwo); Console.ReadLine(); }
public bool CoinTossInfo() { string choice; CombatLogic coin = new CombatLogic(); Console.Write(String.Format(ApplicationSettings .CoinTossInfo_Pick)); if (coin.CoinToss((Coins)Enum.Parse(typeof(Coins), Console.ReadLine(), true))) { Console.Write(String.Format(ApplicationSettings .CoinTossInfo_First)); return(true); } else { Console.Write(String.Format(ApplicationSettings .CoinTossInfo_Second)); return(false); } Console.Write(String.Format(ApplicationSettings .CoinTossInfo_PickInfo, choice)); }
public bool CoinTossInfo() { string choice; CombatLogic coin = new CombatLogic(); Console.Write(String.Format(ApplicationSettings .CoinTossInfo_Pick)); if (coin.CoinToss((Coins)Enum.Parse(typeof(Coins), Console.ReadLine(), true))) { Console.Write(String.Format(ApplicationSettings .CoinTossInfo_First)); return true; } else { Console.Write(String.Format(ApplicationSettings .CoinTossInfo_Second)); return false; } Console.Write(String.Format(ApplicationSettings .CoinTossInfo_PickInfo, choice)); }