Skip to content

Instantly share code, notes, and snippets.

#========EX5==========
#NOW WE WANT PLAYERS TO ENTER THE NAME OF THE LOCATIOn, not a direction
#so you can just type 'valley' and go there
#so we add road, hill etc to the vocabulary
"""So we can't store the directions in Vocabulary. Instead, we store the location numbers, then map them
to the appropriate location.
From the Valley, typing Road should go north, so the vocabulary maps "ROAD" to "1"
and in the exits entry for Valley we map "1" to location 1.
Typing Hill from the Valley needs to take you West, so we map "HILL" to "2", then in the Valley's exits entry
we map "2" to location 2 (which is the hill)."""
@ivalexandru
ivalexandru / install-gist-scripts.sh
Last active September 23, 2017 06:23
install-gist-scripts.sh
#!/bin/bash
GIST_ID=$1
cd ~/bin
git clone https://gist.github.com/$GIST_ID.git
chmod u+x $GIST_ID/*
ln $GIST_ID/*
#cand vrei sa creezi un gist nou, copiezi din url doar ultima parte, id-ul; si il pui ca parametru pozitional
#asta face acel $1 acolo.
#mai exact, rulezi in shell "install-gist-scripts.sh e37db3c856c4c482ef71084a9f95a812" fara ghilimele