add Berkeley copyright
[unix-history] / usr / src / games / wargames / wargames.sh
CommitLineData
0f04b361
KM
1#!/bin/sh -
2#
3# Copyright (c) 1980 Regents of the University of California.
4# All rights reserved. The Berkeley software License Agreement
5# specifies the terms and conditions for redistribution.
6#
7# @(#)wargames.sh 5.1 (Berkeley) %G%
8#
9echo -n "Would you like to play a game? "
10read x
11
12case $x in
13
14adventure)
15 exec /usr/games/$x
16 ;;
17
18backgammon)
19 exec /usr/games/$x
20 ;;
21
22boggle)
23 exec /usr/games/$x
24 ;;
25
26canfield)
27 exec /usr/games/$x
28 ;;
29
30chess)
31 exec /usr/games/$x
32 ;;
33
34cribbage)
35 exec /usr/games/$x
36 ;;
37
38fish)
39 exec /usr/games/$x
40 ;;
41
42fortune)
43 exec /usr/games/$x
44 ;;
45
46hangman)
47 exec /usr/games/$x
48 ;;
49
50mille)
51 exec /usr/games/$x
52 ;;
53
54monop)
55 exec /usr/games/$x
56 ;;
57
58rogue)
59 exec /usr/games/$x
60 ;;
61
62snake)
63 exec /usr/games/$x
64 ;;
65
66
67trek)
68 exec /usr/games/$x
69 ;;
70
71wump)
72 exec /usr/games/$x
73 ;;
74
75zork)
76 exec /usr/games/$x
77 ;;
78
79*)
80 echo "Funny, the only way to win is not to play at all"
81 ;;
82esac
83exit 0