Created
October 18, 2013 19:00
-
-
Save pbanaszkiewicz/7046412 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Useful commands: | |
ssh - start game V | |
cd - change directory | |
ls - print directories and files | |
vim - edit files | |
cat - to say if the file is normal V | |
help - list of commands V | |
unworm - fix contested file V | |
logout - quit game V | |
""" | |
import os | |
import random | |
current_dir = os.getcwd() | |
playing = False | |
virus = "" | |
def ssh(): | |
global playing | |
if not playing: | |
playing = True | |
print messages[1] | |
else: | |
print messages[0] | |
def logout(): | |
global playing | |
if playing: | |
playing = False | |
print messages[2] | |
else: | |
print messages[1] | |
def help(): | |
print globals()["__doc__"] | |
def cat(filename): | |
global virus | |
if filename == virus: | |
print messages[7] | |
def unworn(filename): | |
global virus | |
global playing | |
if filename == virus: | |
print messages[8] | |
playing = False | |
else: | |
print messages[0] | |
messages = [ | |
"That's impossible.", | |
("Oh no! Your system appears to behave improperly, you little fucker." | |
+ " Some lib must have a virus in it!"), | |
"You surrendered. Bye bye", | |
"You're %d hops away from that virus, dumbass.", | |
"No permissions. Are you a sudo fucker?", | |
"You're too dumb to read that file.", | |
"Cannot write to that file, you prick.", | |
"Yay! You found the virus! You're the worst.", | |
"YES! You saved your system! All the libs are thankful! Bye bye" | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment