new copyright notice
[unix-history] / usr / src / games / wargames / wargames.sh
CommitLineData
0f04b361
KM
1#!/bin/sh -
2#
78f22ba9
KB
3# Copyright (c) 1980 The Regents of the University of California.
4# All rights reserved.
0f04b361 5#
78f22ba9
KB
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#
7ab2b09e 18# @(#)wargames.sh 5.3 (Berkeley) %G%
0f04b361
KM
19#
20echo -n "Would you like to play a game? "
21read x
22
7ab2b09e
KB
23if [ -f /usr/games/$x ] ; then
24 tput cl
0f04b361 25 exec /usr/games/$x
7ab2b09e
KB
26else
27 echo "Funny, the only way to win is not to play at all."
28fi
0f04b361 29exit 0