Interactive Design, Strategy, & Technology for Websites, Mobile, Apps, & Games

Share:

Famous Movie Quotes in Code

View All Blog Posts

Famous Movie Quotes in Code

– by John La

Would you be able to guess a movie scene based on code? We developers in all our geekiness have developed a game of recreating famous movie scenes in pseudo-code. Nerdy but fun. Bonus points for creative code and scene insight! #justForFun

 

method makeOffer(Offer $offer, Action $action) {

	try { 	
		person.request($offer, $action);
	} catch ( RefuseException re ) {
		$action = new Threat(Gun, MEAN);
		person.makeOffer($offer, $action);
	}
}

$action = new Action(Ask, NICE);
Godfather.makeOffer($offer, $action);

Spoiler: Highlight to view
"I'm going to make him an offer he can't refuse." - Godfather


class Luke extends Jedi {
    function checkFather($father) {
        if ($father->name == 'Darth Vader')
            die('NOOOOO!!');
    }
}

Spoiler: Highlight to view
"NoooooooOOOOOOOoo!!!!!" - Luke Skywalker


$it = Field.construct(TYPE_BASEBALL);
if ($it.isBuilt()) {
	He.come();
}

Spoiler: Highlight to view
"If you build it, he will come." - Field of Dreams


if ( People.dead == true ) {
	HaleyJoelOsment.see(People);
}

Spoiler: Highlight to view
"I see dead people." - Sixth Sense


Frankenstein.electrocute($monster);
while ( $monster.status(ALIVE) || Frankenstein.outOfBreath == false ) {
	Frankenstein.announce(new Volume(MAX));
}

Spoiler: Highlight to view
"It's alive! It's alive!" - Frankenstein


function check_unicorn(Unicorn $genericUnicorn) {
	if ($genericUnicorn->isFluffy()) {
		die(“It’s SOOO FLUFFFY!!!!”);
	}
}

Spoiler: Highlight to view
“It’s so fluffy I’m gonna die!” - Agnes from “Despicable Me”


public class Neo implements ActionListener {
	brain.addActionListener(this);
	public void actionPerformed(ActionEvent e) {
		this.say(‘I know ’+ e.getKnowledgeTitle());
 	}
}
Tank.upload(Neo, new MartialArt(TYPE_KUNG_FU)); 

Spoiler: Highlight to view
“I Know Kung-Fu” - Neo from The Matrix


class Muldoon {
	function hunt(Target $target) {
		try{
			this.gun.shoot($target);
		} catch (SurpriseException se) {
			die(“Clever Girl”);
		}
	}
}
Muldoon.hunt(velociraptor);

Spoiler: Highlight to view
“Clever girl” - Jurassic Park

 


function playBaseball(Team team) {
	Players[] players = team.getPlayers();
	for(int i = 0 ; i < team.totalPlayers ; i++ ) {
		if(players[i].state == CRYING) {
			Coach.temper(MAX, “There’s no crying in ”+team.sport() );
			if (players[i].isGirl()) {
				Umpire.eject(Coach);
			}
		}
	}
}

Spoiler: Highlight to view