CSharp · Console
using System;
using System.Linq;
public class Program
{
public static void Main()
{
// **********************
// https://xkcd.com/2243/
// **********************
var sentence = from _ in new[] { "" }
let r = new Random()
let villains = new[] { "Kyle Ren", "Malloc", "Darth Sebelius", "Theranos", "Lord Juul" }
let friends = new[] { "Kim Spacemeasurer", "Teen Yoda", "Dab Tweetdeck", "Yaz Progestin", "TI-83" }
let colors = new[] { "beige", "ochre", "mauve", "taupe" }
let weapons = new[] { "sun obliterator", "moonsquisher", "world eater", "planet zester", "superconducting supercollider" }
let effects = new[]
{
"blowing up a planet with a bunch of beams of energy that combine into one",
"blowing up a bunch of planets with one beam of energy that splits into many",
"cutting a planet in half and smashing the halves together like two cymbals",
"increasing the CO2 levels in a planet's atmosphere, causing rapid heating",
"triggering the end credits before the movie is done"
}
let oldEnemies = new[] { "Boba Fett", "Salacious Crumb", "The Space Slug", "The bottom half of Darth Maul", "Youtube Commenters" }
let features = new[]
{
"a bow that shoots little lightsaber-headed arrows",
"X-Wings and Tie Fighters dodging the giant letters of the opening crawl",
"a Sith educational display that users force lightning to demonstrate the dielectric breakdown of air",
"Kylo Ren putting on another helmet over his smaller one",
"a Sith car wash where the bristles onthe brushes are little lightsabers"
}
let parents = new[] { "Luke", "Leia", "Han", "Obi-Wan", "A random junk trader" }
let parents2 = new[] { "Poe", "BB-8", "Amilyn Holdo", "Laura Dern", "A random junk trader", "That one droid from the Jawa Sandcrawler that says GONK" }
select $@"In this Star Wars movie, our heroes return to take on The First Order and new villain {villains[r.Next(0, villains.Length)]} with help from their new friend {friends[r.Next(0, friends.Length)]}.
Rey builds a new lightsaber with a {colors[r.Next(0, colors.Length)]} blade, and they head out to confront The First Order's new superweapon, the {weapons[r.Next(0, weapons.Length)]};
a space station capable of {effects[r.Next(0, effects.Length)]}.
They unexpectedly join forces with their old enemy {oldEnemies[r.Next(0, oldEnemies.Length)]} and destroy the superweapon in a battle featuring {features[r.Next(0, features.Length)]}.
P.S. Rey's parents are {parents[r.Next(0, parents.Length)]} and {parents2[r.Next(0, parents2.Length)]}.";
Console.WriteLine(sentence.First());
}
}