BSD 4_3_Reno release
[unix-history] / usr / games / wargames
CommitLineData
0f04b361
KM
1#!/bin/sh -
2#
1c15e888
C
3# Copyright (c) 1985 The Regents of the University of California.
4# All rights reserved.
0f04b361 5#
1c15e888
C
6# Redistribution and use in source and binary forms are permitted
7# provided that: (1) source distributions retain this entire copyright
8# notice and comment, and (2) distributions including binaries display
9# the following acknowledgement: ``This product includes software
10# developed by the University of California, Berkeley and its contributors''
11# in the documentation or other materials provided with the distribution
12# and in all advertising materials mentioning features or use of this
13# software. Neither the name of the University nor the names of its
14# contributors may be used to endorse or promote products derived
15# from this software without specific prior written permission.
16# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
17# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
18# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19#
20# @(#)wargames.sh 5.4 (Berkeley) 6/1/90
0f04b361
KM
21#
22echo -n "Would you like to play a game? "
23read x
24
1c15e888
C
25if [ -f /usr/games/$x ] ; then
26 tput cl
0f04b361 27 exec /usr/games/$x
1c15e888
C
28else
29 echo "Funny, the only way to win is not to play at all."
30fi
0f04b361 31exit 0