Game Idea Generator: JavaScript code

<script type="text/javascript">
<!--

// -------------------------------------------------------------------

// GAME IDEA GENERATOR

// -------------------------------------------------------------------
// from unflocked.com/gameideagenerator
// Created 8th of August, 2009 by Nick Pendriis.
// Shared under CC license, 6th of December 2016.
// creativecommons.org/licenses/by-nc-sa/4.0/
// -------------------------------------------------------------------

// Create the first random word of the game's title.

var randomnumber1=Math.floor(Math.random()*67)

// NB: change the number above when adding or removing words in the array - and no comma at the end of the list!

var pt1 = new Array(
"Aerial","Alien","All-Star","Armoured","Atomic","Astro",
"Bizarre","Bonsai","Bouncing",
"Clockwork","Colossal","Cosmic","Crazy","Cyborg",
"Demon","Digital","Drunken","Dwarf",
"Electric","Enchanted","Epic","Exploding","Extreme",
"Flaming","Flying","Freestyle","Funky","Furious",
"Galactic","Gargantuan",
"Heavily Armed","Holographic","Homicidal","Hyper",
"Invincible","Kamikaze","Legendary",
"Magical","Mechanical","Medieval","Mutant","Mythical",
"Nano","Nuclear",
"Pet","Prehistoric","Psycho",
"Raging","Renegade","Retro","Robot","Rogue",
"Space","Steam-Powered","Strategic","Stretchy",
"Tactical","Toxic",
"Underground","Undead","Underwater","Urban",
"Vampire","Vegetarian",
"Wild",
"Zero-Gravity","Zombie"
)

// Create the second random word.

var randomnumber2=Math.floor(Math.random()*59)

// NB: When adding words to the list, or removing them, change the final number above to match. Or feel free to add code to count the words.

var pt2 = new Array(
"Bandit","Battle","Beetle","Bunny",
"Chainsaw","Cheerleader","Clown","Crab","Crocodile",
"Dinosaur","Disco","Dragon",
"Egg",
"Fashion","Firework","Fruit",
"Gangster","Gemstone","Ghost","Go-Go","Goblin","Golem","Gorilla","Granny",
"Imp","Insect",
"Jungle",
"Kitten",
"Laser","Lizard",
"Monkey","Monster",
"Ninja",
"Parrot","Pastry","Pirate","Piranha","Pixel","Pixie","Pony","Porcupine",
"Primate","Puppy","Puzzle","Pygmy",
"Rock","Rodent","Rhythm",
"Samurai","Sheep","Spider","Squirrel","Stealth","Stunt",
"Time",
"Walrus","Wizard",
"Yakuza","Yeti"
)

// Create the third random word.

var randomnumber3=Math.floor(Math.random()*79)

// Likewise, the above number must match the word count below.

var pt3 = new Array(
"Adventure","Arena","Assassins",
"Bombers","Boutique","Brain Training",
"Cannons","Cards","Carnival","Catapults","Cook-off","Cookery","Crisis",
"Dance-Off","Defence","Detectives","Diplomats","Dungeon",
"Empire",
"Farm","Farmer","Fighters","Fishing","Fortresses","Freerunning","Frenzy",
"Gardening","Golf","Grand Prix",
"Karaoke","Karts","Kickboxing","Knitting","Kung-Fu",
"Hospital","Hotel","Hunting",
"Juggling",
"Makeover","Manager","Mayhem","Miner","Mines",
"Odyssey","Olympiad","Outlaws",
"Painting","Panic","Party","Peacekeepers","Ping Pong","Poker","Police","Princess",
"Racing","Raiders","Rampage","Ranch","Rescue","Resort",
"Restaurant","Rockets","Rodeo",
"Safari","Shoot Out","Shopping","Showdown","Snipers",
"Spies","Squad","Sumo","Surfing",
"Tanks","Terror","Throwing",
"Warriors","Wars","Wrestling",
"Zoo"
)

// Create a string combining the 3 words (plus trademark symbol and line breaks) and write it to the screen.

n = "<font color=&quot;cc0000&quot;><b>"+pt1[randomnumber1]+"<br/>"+pt2[randomnumber2]+" "+pt3[randomnumber3]+"&#0153;"+"<\/b><\/font>"
document.write(n)

// Create a random quote from a fictitious magazine or website, based on the game's subject matter. Could use some tweaking but it generally works.

var randomparticle=Math.floor(Math.random()*2)

var particle=new Array
("it's ","")

var subject=pt2[randomnumber2]
var word_length=subject.length
var last_letter=subject.charAt(word_length-1)

if ((last_letter=="a") || (last_letter=="e") || (last_letter=="i") || (last_letter=="o") || (last_letter=="u"))
{
var hyperbole= new Array(
"-delic","-licious","-rrific","-gasmic","-mungous","-dacious","-tastic",
"-tacular"," and beyond"," fun at its best"," flavored crack"," FTW",
" gold"," greatness"," insanity"," lickin' good"," madness"," perfection",
" reinvented","-tacular"," to the max"
)
}
else
{
var hyperbole= new Array(
"-a-delic","-o-licious","-a-rrific","-gasmic","-o-mungous","-o-dacious",
"-tastic","-tacular"," and then some"," fun at its best"," flavored crack",
" FTW"," gold"," greatness"," insanity"," lickin' good"," madness",
" perfection"," reimagined","-tacular"," to the max"
)
}

var randomhype=Math.floor(Math.random()*21)

m= "<i>&quot;"+particle[randomparticle]+subject+hyperbole[randomhype]+"!&quot;"+"<\/i><br/>"
var q = m.toLowerCase();
document.write(q)

// Display the source of the random quote

var randomsource=Math.floor(Math.random()*18)

var quotesource = new Array(
"Bleeding Thumbs","Button Masher","Controller Monkey",
"Download Demon","Epic Nerd","Fanboy Tweeter","Flavour Of The Month",
"App Revue","Gaming Times","GeekyBlog.com","Hip Chip","Overhype Magazine",
"Marketing Spiel","Screen Slave","Serious Playa","Total Appfest",
"Touch My Gizmo","What Game"
)

var randomrating=Math.floor(Math.random()*5)

var rating = new Array(
"***","****","*****","10/10","5/5"
)

r=rating[randomrating]

o= quotesource[randomsource]+"<br/>"+r
document.write(o)

//-->
</script><noscript>This gizmo is made from JavaScript. Please enable.</noscript>