private static Random _rnd = new Random();
public float winRate = 53;
public int maxGames = 2000;
public int minMinutesToPlayDeck = 7;
public int maxMinutesToPlayDeck = 15;
Console.WriteLine("Begin LEGEND run!");
Console.WriteLine("//////////////////////////////////////////////////////////////////////////////////////////");
for (int i = 0; i < maxGames; i++)
float actualWinRate = ((float)noOfGamesWon/(float)noOfGamesPlayed)*100;
Console.WriteLine("//////////////////////////////////////////////////////////////////////////////////////////");
Console.WriteLine("You have failed to reach legend in " + maxGames + " games, actual winrate: "+actualWinRate+"%");
Console.WriteLine("You have wasted approximately "+ConvertMinutesToMMHHDD(noOfMinutesSpent)+" trying to do so");
float actualWinRate = ((float)noOfGamesWon/(float)noOfGamesPlayed)*100;
Console.WriteLine("////////////////////////////////////////////////////////////// LEGEND ATTAINED! //////////////////////////////////////////////////////////////");
Console.WriteLine(" With a winrate of " + winRate + "%, You have played " + noOfGamesPlayed + " games in order to achieve legendary status!");
Console.WriteLine(" Games Won: "+noOfGamesWon+ ", Games Lost: "+noOfGamesLost+" Actual Winrate: "+actualWinRate+"%");
Console.WriteLine(" You have spent approximately "+ConvertMinutesToMMHHDD(noOfMinutesSpent)+" trying to do so");
Console.WriteLine("//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////");
noOfMinutesSpent += _rnd.Next(minMinutesToPlayDeck,maxMinutesToPlayDeck);
if (_rnd.Next(1,1000)<winRate*10)
if (winStreakCounter < 3)
Console.WriteLine("WIN STREAK!");
Console.WriteLine("UP rank to "+ curRank + ", - Total Games Played: " + noOfGamesPlayed);
Console.WriteLine("DOWN rank to "+ curRank + ", - Total Games Played: " + noOfGamesPlayed);
Console.WriteLine("UP rank to "+ curRank + ", - Total Games Played: " + noOfGamesPlayed);
Console.WriteLine("DOWN rank to "+ curRank + ", - Total Games Played: " + noOfGamesPlayed);
public string ConvertMinutesToMMHHDD (int minElasped)
TimeSpan span = TimeSpan.FromMinutes(minElasped);
string label = span.Days.ToString()+" Days, "+span.Hours.ToString()+" Hours and "+span.Minutes.ToString()+" Minutes";