Commit | Line | Data |
---|---|---|
109b6676 C |
1 | #! /bin/sh |
2 | echo -n "Would you like to play a game? " | |
3 | read x | |
4 | ||
5 | case $x in | |
6 | ||
7 | adventure) | |
8 | exec /usr/games/$x | |
9 | ;; | |
10 | ||
11 | backgammon) | |
12 | exec /usr/games/$x | |
13 | ;; | |
14 | ||
15 | boggle) | |
16 | exec /usr/games/$x | |
17 | ;; | |
18 | ||
19 | canfield) | |
20 | exec /usr/games/$x | |
21 | ;; | |
22 | ||
23 | chess) | |
24 | exec /usr/games/$x | |
25 | ;; | |
26 | ||
27 | cribbage) | |
28 | exec /usr/games/$x | |
29 | ;; | |
30 | ||
31 | fish) | |
32 | exec /usr/games/$x | |
33 | ;; | |
34 | ||
35 | fortune) | |
36 | exec /usr/games/$x | |
37 | ;; | |
38 | ||
39 | hangman) | |
40 | exec /usr/games/$x | |
41 | ;; | |
42 | ||
43 | mille) | |
44 | exec /usr/games/$x | |
45 | ;; | |
46 | ||
47 | monop) | |
48 | exec /usr/games/$x | |
49 | ;; | |
50 | ||
51 | rogue) | |
52 | exec /usr/games/$x | |
53 | ;; | |
54 | ||
55 | snake) | |
56 | exec /usr/games/$x | |
57 | ;; | |
58 | ||
59 | ||
60 | trek) | |
61 | exec /usr/games/$x | |
62 | ;; | |
63 | ||
64 | wump) | |
65 | exec /usr/games/$x | |
66 | ;; | |
67 | ||
68 | zork) | |
69 | exec /usr/games/$x | |
70 | ;; | |
71 | ||
72 | *) | |
73 | echo "Funny, the only way to win is not to play at all" | |
74 | ;; | |
75 | esac | |
76 | exit 0 |