Skip to content

Instantly share code, notes, and snippets.

View seanmcelroy's full-sized avatar
🔒
Protect people.

Sean McElroy seanmcelroy

🔒
Protect people.
View GitHub Profile
@seanmcelroy
seanmcelroy / untrusted-lvl10-solution.js
Created April 8, 2014 02:13
untrusted-lvl10-solution.js
/*************
* ambush.js *
*************
*
* Oh. Oh, I see. This wasn't quite part of the plan.
*
* Looks like they won't let you take the Algorithm
* without a fight. You'll need to carefully weave your
* way through the guard drones.
*
@seanmcelroy
seanmcelroy / untrusted-lvl11-solution.js
Created April 8, 2014 02:13
untrusted-lvl11-solution.js
/*
* robot.js
*
* You'll need three keys in order to unlock the
* Algorithm: the red key, the green key, and the
* blue key. Unfortunately, all three of them are
* behind human-proof barriers.
*
* The plan is simple: reprogram the maintenance
* robots to grab the key and bring it through
@seanmcelroy
seanmcelroy / untrusted-lvl12-solution.js
Created April 8, 2014 02:13
untrusted-lvl12-solution.js
/*
* robotNav.js
*
* The green key is located in a slightly more
* complicated room. You'll need to get the robot
* past these obstacles.
*/
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
@seanmcelroy
seanmcelroy / untrusted-lvl13-solution.js
Created April 8, 2014 02:14
untrusted-lvl13-solution.js
/*
* robotMaze.js
*
* The blue key is inside a labyrinth, and extracting
* it will not be easy.
*
* It's a good thing that you're a AI expert, or
* we would have to leave empty-handed.
*/
@seanmcelroy
seanmcelroy / untrusted-lvl14-solution.js
Created April 8, 2014 02:25
untrusted-lvl14-solution.js
/********************
* crispsContest.js *
********************
*
* The Algorithm is almost in our grasp!
* At long last, we will definitively establish
* that 3SAT is solvable in polynomial time. It's
* been a long, strange journey, but it will all be
* worth it.
*
@seanmcelroy
seanmcelroy / untrusted-lvl15-solution.js
Created April 8, 2014 02:27
untrusted-lvl15-solution.js
/**************************
* exceptionalCrossing.js *
**************************
*
* Sorry, old friend, but I'm afraid I can't share
* co-authorship on this paper. You've done a very
* good job getting this Algorithm for me. The bit
* with the keys was especially clever! I wouldn't
* have thought of it myself. But then, of course,
* that's why you were here in the first place.
@seanmcelroy
seanmcelroy / untrusted-lvl16-solution.js
Last active August 29, 2015 13:58
untrusted-lvl16-solution.js
/*************
* lasers.js *
*************
*
* Time to unleash the killer lasers! Each laser will kill you
* unless you have the appropriate color. Too bad you can't
* see which color corresponds to which laser!
*/
function getRandomInt(min, max) {
@seanmcelroy
seanmcelroy / untrusted-lvl17-solution.js
Created April 8, 2014 03:19
untrusted-lvl17-solution.js
/***************
* pointers.js *
***************
*
* You! How are you still alive?
*
* Well, no matter. Good luck getting through this
* maze of rooms - you'll never see me or the Algorithm again!
*/
@seanmcelroy
seanmcelroy / untrusted-lvl18-solution.js
Created April 8, 2014 03:30
untrusted-lvl18-solution.js
/**********************
* superDrEvalBros.js *
**********************
*
* You're still here?! Well, Dr. Eval, let's see
* how well you can operate with one less dimension.
*
* Give up now. Unless you have a magic mushroom
* up your sleeve, it's all over.
*/
@seanmcelroy
seanmcelroy / untrusted-lvl20-solution.js
Last active August 29, 2015 13:58
untrusted-lvl20-solution.js
/*****************
* bossFight.js *
*****************
*
* NO FARTHER, DR. EVAL!!!!
* YOU WILL NOT GET OUT OF HERE ALIVE!!!!
* IT'S TIME YOU SEE MY TRUE FORM!!!!
* FACE MY ROBOT WRATH!!!!!
*/