home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky alt.hackers:1352 talk.bizarre:28623
- Newsgroups: alt.hackers,talk.bizarre
- Path: sparky!uunet!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!destroyer!terminator!honey
- From: honey@citi.umich.edu (Peter Honeyman)
- Subject: Re: Your very own Magic 8 Ball simulator
- Message-ID: <1992Sep3.014309.1325@terminator.cc.umich.edu>
- Sender: news@terminator.cc.umich.edu (Usenet Owner)
- Reply-To: honey@citi.umich.edu
- Organization: Center for Information Technology Integration, Univ of Michigan
- References: <1992Sep1.232614.15386@wdl.loral.com>
- Date: Thu, 3 Sep 1992 01:43:09 GMT
- Approved: yet deprecated
- Lines: 64
-
- #!/bin/csh -f
- @ n = $$ % 20
- switch($n)
- case 1:
- echo YES.
- breaksw
- case 2:
- echo You may rely on it.
- breaksw
- case 3:
- echo It is decidedly so.
- breaksw
- case 4:
- echo Yes, definitely.
- breaksw
- case 5:
- echo Without a doubt.
- breaksw
- case 6:
- echo It is certain.
- breaksw
- case 7:
- echo Most likely.
- breaksw
- case 8:
- echo Outlook good.
- breaksw
- case 9:
- echo Signs point to \`yes.\'
- breaksw
- case 10:
- echo As I see it, yes.
- breaksw
- case 11:
- echo Reply hazy, try again.
- breaksw
- case 12:
- echo Concentrate and ask again.
- breaksw
- case 13:
- echo Ask again later.
- breaksw
- case 14:
- echo Better not tell you now.
- breaksw
- case 15:
- echo Cannot predict now.
- breaksw
- case 16:
- echo My sources say, \`No.\'
- breaksw
- case 17:
- echo Very doubtful.
- breaksw
- case 18:
- echo Don\'t count on it.
- breaksw
- case 19:
- echo Outlook not so good.
- breaksw
- case 0:
- echo My reply is: No.
- breaksw
- endsw
-