#!/bin/sh -
+# $NetBSD: wargames.sh,v 1.4 2001/09/19 04:54:06 lukem Exp $
#
-# Copyright (c) 1985 The Regents of the University of California.
-# All rights reserved.
+# Copyright (c) 1985, 1993
+# The Regents of the University of California. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
-# @(#)wargames.sh 5.4 (Berkeley) 6/1/90
+# @(#)wargames.sh 8.1 (Berkeley) 5/31/93
#
echo -n "Would you like to play a game? "
read x
+x=`echo $x | sed 's/[^a-z0-9]//g'`
+
if [ -f /usr/games/$x ] ; then
tput cl
exec /usr/games/$x
else
- echo "Funny, the only way to win is not to play at all."
+ exec cat <<QUOTE
+A strange game.
+The only winning move is
+not to play.
+QUOTE
fi
exit 0