Skip to content

Instantly share code, notes, and snippets.

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

Sean M. seanmcelroy

🔒
Protect people.
  • Dallas, Texas
View GitHub Profile
NN (13166)
IN 24.74% (#3257)
NN 12.64% (#1664)
, 11.23% (#1479)
. 10.62% (#1398)
NNS 8.20% (#1080)
VBD 4.90% (#645)
VBZ 4.56% (#601)
TO 4.00% (#526)
CC 3.88% (#511)
@seanmcelroy
seanmcelroy / untrusted-lvl1-solution.js
Last active August 29, 2015 13:58
untrusted-lvl1-solution.js
/*****************
* cellBlockA.js *
*****************
*
* Good morning, Dr. Eval.
*
* It wasn't easy, but I've managed to get your computer down
* to you. This system might be unfamiliar, but the underlying
* code is still JavaScript. Just like we predicted.
*
@seanmcelroy
seanmcelroy / untrusted-lvl2-solution.js
Last active August 29, 2015 13:58
untrusted-lvl2-solution.js
/********************
* theLongWayOut.js *
********************
*
* Well, it looks like they're on to us. The path isn't as
* clear as I thought it'd be. But no matter - four clever
* characters should be enough to erase all their tricks.
*/
function startLevel(map) {
@seanmcelroy
seanmcelroy / untrusted-lvl3-solution.js
Last active August 29, 2015 13:58
untrusted-lvl3-solution.js
/************************
* validationEngaged.js *
************************
*
* They're really on to us now! The validateLevel function
* has been activated to enforce constraints on what you can
* do. In this case, you're not allowed to remove any blocks.
*
* They're doing all they can to keep you here. But you
* can still outsmart them.
@seanmcelroy
seanmcelroy / untrusted-lvl4-solution.js
Last active March 26, 2020 10:23
untrusted-lvl4-solution.js
/*******************
* multiplicity.js *
*******************
*
* Out of one cell and into another. They're not giving you
* very much to work with here, either. Ah, well.
*
* Level filenames can be hints, by the way. Have I
* mentioned that before?
*
@seanmcelroy
seanmcelroy / untrusted-lvl5-solution.js
Last active August 29, 2015 13:58
untrusted-lvl5-solution.js
/******************
* minesweeper.js *
******************
*
* So much for Asimov's Laws. They're actually trying to kill
* you now. Not to be alarmist, but the floor is littered
* with mines. Rushing for the exit blindly may be unwise.
* I need you alive, after all.
*
* If only there was some way you could track the positions
@seanmcelroy
seanmcelroy / untrusted-lvl6-solution.js
Created April 8, 2014 02:10
untrusted-lvl6-solution.js
/****************
* drones101.js *
****************
*
* Do you remember, my dear Professor, a certain introductory
* computational rationality class you taught long ago? Assignment
* #2, behavior functions of autonomous agents? I remember that one
* fondly - but attack drones are so much easier to reason about
* when they're not staring you in the face, I would imagine!
@seanmcelroy
seanmcelroy / untrusted-lvl7-solution.js
Created April 8, 2014 02:11
untrusted-lvl7-solution.js
/*************
* colors.js *
*************
*
* You're almost at the exit. You just need to get past this
* color lock.
*
* Changing your environment is no longer enough. You must
* learn to change yourself. I've sent you a little something
* that should help with that.
@seanmcelroy
seanmcelroy / untrusted-lvl8-solution.js
Created April 8, 2014 02:12
untrusted-lvl8-solution.js
/*******************
* intoTheWoods.js *
*******************
*
* Ah, you're out of the woods now. Or into the woods, as the
* case may be.
*
* So take a deep breath, relax, and remember what you're here
* for in the first place.
*
@seanmcelroy
seanmcelroy / untrusted-lvl9-solution.js
Created April 8, 2014 02:12
untrusted-lvl9-solution.js
/**********************
* fordingTheRiver.js *
**********************
*
* And there's the river. Fortunately, I was prepared for this.
* See the raft on the other side?
*
* Everything is going according to plan.
*/