AARDVARK(6) Games Manual AARDVARK(6)NAME
aardvark - yet another exploration game
SYNOPSIS
/usr/games/aardvark
DESCRIPTION
Aardvark is yet another computer fantasy simulation game of the adventure/zork genre. This one is written in DDL (Dungeon Definition Lan-
guage) and is intended primarily as an example of how to write a dungeon in DDL.
FILES
/usr/games/lib/ddlrun ddl interpreter
/usr/games/lib/aardvarkinternal form of aardvark dungeon
AUTHOR
Mike Urban, UCLA
4th Berkeley Distribution May 20, 1985 AARDVARK(6)
Check Out this Related Man Page
SNAKE(6) Games Manual SNAKE(6)NAME
snake, snscore - display chase game
SYNOPSIS
/usr/games/snake [ -wn ] [ -ln ]
/usr/games/snscore
DESCRIPTION
Snake is a display-based game which must be played on a CRT terminal from among those supported by vi(1). The object of the game is to
make as much money as possible without getting eaten by the snake. The -l and -w options allow you to specify the length and width of the
field. By default the entire screen (except for the last column) is used.
You are represented on the screen by an I. The snake is 6 squares long and is represented by S's. The money is $, and an exit is #. Your
score is posted in the upper left hand corner.
You can move around using the same conventions as vi(1), the h, j, k, and l keys work, as do the arrow keys. Other possibilities include:
sefc These keys are like hjkl but form a directed pad around the d key.
HJKL These keys move you all the way in the indicated direction to the same row or column as the money. This does not let you jump away
from the snake, but rather saves you from having to type a key repeatedly. The snake still gets all his turns.
SEFC Likewise for the upper case versions on the left.
ATPB These keys move you to the four edges of the screen. Their position on the keyboard is the mnemonic, e.g. P is at the far right of
the keyboard.
x This lets you quit the game at any time.
p Points in a direction you might want to go.
w Space warp to get out of tight squeezes, at a price.
! Shell escape
^Z Suspend the snake game, on systems which support it. Otherwise an interactive shell is started up.
To earn money, move to the same square the money is on. A new $ will appear when you earn the current one. As you get richer, the snake
gets hungrier. To leave the game, move to the exit (#).
A record is kept of the personal best score of each player. Scores are only counted if you leave at the exit, getting eaten by the snake
is worth nothing.
As in pinball, matching the last digit of your score to the number which appears after the game is worth a bonus.
To see who wastes time playing snake, run /usr/games/snscore .
FILES
/usr/games/lib/snakerawscores database of personal bests
/usr/games/lib/snake.log log of games played
/usr/games/busy program to determine if system too busy
BUGS
When playing on a small screen, it's hard to tell when you hit the edge of the screen.
The scoring function takes into account the size of the screen. A perfect function to do this equitably has not been devised.
4th Berkeley Distribution May 20, 1985 SNAKE(6)
Stupid question, but is there an ANSI C stdlib function that will do this for me? I want to pass the function a path and determine if the current process can read/write/execute on the path. I suppose I can whip something up using fstat and then determining the current process's user/group IDs and... (6 Replies)
mv myFile.txt myFile.txt.bak
sed s/foo/bar/g myFile.txt.bak > myFile.txt
Turn the two-line version, above, of the substitution commands into a shell script, subst1 taking three parameters:
the string to be replaced
the string with which to replace it
the name of the file in which to make the... (1 Reply)
Hi all,
I am trying to write a script substituting one word in a particular file with another word (sed) but I'm having trouble creating the backup file. The following are my instructions:
The Unix program sed is useful for making simple substitutions throughout an entire file. But one of... (0 Replies)
Hi!
I recently downloaded a wordlist file called 2of12.txt, which is a wordlist of common words, part of the 12dicts package. I've been getting unexpected results from grepping it, such as getting no matches when clearly there ought to be, or returns that are simply wrong.
Par exemple:
egrep... (4 Replies)
Hi, I was hoping that someone could help me. I have a problem that i am trying to work on and it requires me to change text within multiple files using sed. What i have so far is
!/bin/sh
File1="$3"
File2="$4"
File3="$5"
testNum="$File1"
while test "$testNum" <= "$File3";
do
echo... (12 Replies)
There's a Unix configuration file that needs to be executed at the start of my script
The location of the file is
/Dstage/AA_INTERFACES/SYSTEM_FILES/MISC/
Now the script has to be deployed into a new UAT server for testing
where the location above has been change to... (3 Replies)
Hi!
I'm trying to figure out how to find words with X number of doubles, only. I'm searching a dictionary, (one word per line). For instance, if you want to find words containing only one pair of double letters, you could do something like this:
egrep '(.)\1' wordlist.txt |egrep -v '(.)\1.*(.)\2'... (3 Replies)
I am not sure what I am doing wrong here. The code should work fine. I have been making small changes insuring that each new bit works. Now running my sed through multiple files I am getting incorrect output. Any help and instruction would be greatly appreciated.
The problem -
Generalize... (10 Replies)
I have a text file (allWords.txt), that I would like to search through. Here is a snippet of what it looks like...
a
aah
aahed
aahing
aahs
aardvark
aardvarks
aardwolf
ab
abaci
aback
abacus
abacuses
abaft
......
I would like to use the grep search to search, line by line, for... (8 Replies)
Say I have a text file (allWords.txt), that contains all the words in the dictionary, line by line, that I would like to search through. Here is a snippet of what it might looks like...
Code:
a aah aahed aahing aahs aardvark aardvarks aardwolf ab abaci aback abacus abacuses abaft ......
I... (1 Reply)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a script checkFiles.sh that takes an arbitrary number of file paths from the command line and carries ... (5 Replies)
1. The problem statement, all variables and given/known data:
write a script asciiFix.sh that takes an arbitrary number of file paths from the command line and carries out the same analysis on each one. If a file is not Windows ASCII, your script should do nothing to it. For each file that is... (7 Replies)