[ WP ] Write a story in JavaScript , C # , or another computer language .

using System; 
 
 using System.Collections.Generic; 
 
 using System.Linq; 
 
 using System.Text; 
 
 using System.World.Earth; 
 
 using System.Creatures; 
 
 using System.Universe; 
 
 
 namespace SurvivalSimulation 
 { 
 
 class Program 
 { 
 
 static void Main ( string [ ] args ) 
 { 
 
 // Seed main variables 
 var humanity = new Humanity ( ); 
 humanity.MiseryLevel = MiseryLevels.High; 
 humanity.IntelligenceLevel = IntelligenceLevels.Average; 
 humanity.DestructivenessLevel = DestructivenessLevel.High; 
 
 var earth = new Earth ( ); 
 earth.Ecosystem = EcosystemType.Damaged; 
 earth.Ressources = RessourcesType.Depleted; 
 
 var randomFactor = GenerateRandomFactor ( ); 
 
 var survivalChances = Universe.CalculateSurvivalChances ( humanity, earth, randomFactor ); 
 
 if ( survivalChances == null ) 
 { 
 // Something is weird 
 Console.WriteLine ( `` Error: No survival chances could be calculated. `` ); 
 } 
 
 Console.WriteLine ( `` Survival chances of current iteration of Humanity is { 0 }'', survivalChances ); 
 Console.WriteLine ( `` Thank you for using a god corp software. `` ); 
 Console.WriteLine ( `` Press any key to continue. `` ); 
 Console.ReadLine ( ); 
 } 
 
 static RandomFactor GenerateRandomFactor ( ) 
 { 
 var randomFactor = new RandomFactor ( ); 
 var rnd = new Random ( ); 
 var seed = rnd.Next ( 10 ); 
 
 switch ( seed ) 
 { 
 case 0: 
 randomFactor.TimeTravelIsPossible = true; 
 break; 
 case 1: 
 randomFactor.USAExist = true; 
 break; 
 case 2: 
 randomFactor.AlienInvasion = true; 
 break; 
 case 3: 
 randomFactor.JesusExist = true; 
 break; 
 case 4: 
 randomFactor.HilterExist = true; 
 break; 
 case 5: 
 randomFactor.ChinaAnnexedByJapan = true; 
 break; 
 case 6: 
 randomFactor.NoAnimals = true; 
 break; 
 case 7: 
 randomFactor.LizardPeopleLives = true; 
 break; 
 case 8: 
 randomFactor.AfricaThirdWorld = true; 
 break; 
 case 9: 
 randomFactor.SupernaturalCreatureExists = true; 
 break; 
 } 
 return randomFactor; 
 
 } 
 } 
 } 

