xref: /original-bsd/games/wargames/wargames.sh (revision 29d43723)
1#!/bin/sh -
2#
3# Copyright (c) 1980 The Regents of the University of California.
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms are permitted
7# provided that the above copyright notice and this paragraph are
8# duplicated in all such forms and that any documentation,
9# advertising materials, and other materials related to such
10# distribution and use acknowledge that the software was developed
11# by the University of California, Berkeley.  The name of the
12# University may not be used to endorse or promote products derived
13# from this software without specific prior written permission.
14# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17#
18#	@(#)wargames.sh	5.2 (Berkeley) 02/17/89
19#
20echo -n "Would you like to play a game? "
21read x
22
23case $x in
24
25adventure)
26	exec /usr/games/$x
27	;;
28
29backgammon)
30	exec /usr/games/$x
31	;;
32
33boggle)
34	exec /usr/games/$x
35	;;
36
37canfield)
38	exec /usr/games/$x
39	;;
40
41chess)
42	exec /usr/games/$x
43	;;
44
45cribbage)
46	exec /usr/games/$x
47	;;
48
49fish)
50	exec /usr/games/$x
51	;;
52
53fortune)
54	exec /usr/games/$x
55	;;
56
57hangman)
58	exec /usr/games/$x
59	;;
60
61mille)
62	exec /usr/games/$x
63	;;
64
65monop)
66	exec /usr/games/$x
67	;;
68
69rogue)
70	exec /usr/games/$x
71	;;
72
73snake)
74	exec /usr/games/$x
75	;;
76
77
78trek)
79	exec /usr/games/$x
80	;;
81
82wump)
83	exec /usr/games/$x
84	;;
85
86zork)
87	exec /usr/games/$x
88	;;
89
90*)
91	echo "Funny, the only way to win is not to play at all"
92	;;
93esac
94exit 0
95