Skip to content

Instantly share code, notes, and snippets.

View vafrederico's full-sized avatar

Vinícius Frederico vafrederico

View GitHub Profile
@vafrederico
vafrederico / untrusted-lvl5-solution.js
Created April 8, 2014 07:53
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
@vafrederico
vafrederico / untrusted-lvl7-solution.js
Created April 8, 2014 07:53
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.
@vafrederico
vafrederico / untrusted-lvl8-solution.js
Created April 8, 2014 07:54
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.
*
@vafrederico
vafrederico / untrusted-lvl9-solution.js
Created April 8, 2014 07:54
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.
*/
@vafrederico
vafrederico / untrusted-lvl10-solution.js
Created April 8, 2014 07:54
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.
*
@vafrederico
vafrederico / untrusted-lvl11-solution.js
Created April 8, 2014 07:55
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
@vafrederico
vafrederico / untrusted-lvl12-solution.js
Created April 8, 2014 07:55
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;
@vafrederico
vafrederico / untrusted-lvl14-solution.js
Created April 8, 2014 07:56
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.
*
@vafrederico
vafrederico / untrusted-lvl17-solution.js
Created April 8, 2014 07:57
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!
*/
@vafrederico
vafrederico / untrusted-lvl20-solution.js
Created April 8, 2014 07:59
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!!!!!
*/