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
#========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).""" |
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
#!/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 |