[comp.sources.wanted] suicide.c

al@gtx.com (Alan Filipski) (09/16/88)

Has anyone got a copy of Nathan Glasser's program suicide.c?
It was posted to net.suicide in early January 1983.


  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ( Alan Filipski, GTX Corp, 8836 N. 23rd Avenue, Phoenix, Arizona 85021, USA )
 ( {allegra,decvax,hplabs,amdahl,nsc}!sun!sunburn!gtx!al       (602)870-1696 )
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

nathan@eddie.MIT.EDU (Nathan Glasser) (09/16/88)

In article <754@gtx.com> al@gtx.UUCP (Alan Filipski) writes:
>Has anyone got a copy of Nathan Glasser's program suicide.c?
>It was posted to net.suicide in early January 1983.

I don't think I've actually got a copy of my original posting, but
I could probably reconstruct the program without too much difficulty.
If someone actually still has a copy (I'd be pretty impressed by this),
they can feel free to post it, otherwise I can probably get around to it.

Probably a better place to post it now would be in comp.sources.games.
-- 
				Nathan Glasser
fnord				nathan@{mit-eddie.uucp, xx.lcs.mit.edu}
"A tribble is the only love that money can buy."	    
Presently there is insufficient evidence to conclude that tribbles spread AIDS.

jgo@mcgp1.UUCP (John Opalko, N7KBT) (09/20/88)

In article <10082@eddie.MIT.EDU>, nathan@eddie.MIT.EDU (Nathan Glasser) writes:
> In article <754@gtx.com> al@gtx.UUCP (Alan Filipski) writes:
> >Has anyone got a copy of Nathan Glasser's program suicide.c?
> >It was posted to net.suicide in early January 1983.
> 
> I don't think I've actually got a copy of my original posting, but
> I could probably reconstruct the program without too much difficulty.
> If someone actually still has a copy (I'd be pretty impressed by this),
> they can feel free to post it, otherwise I can probably get around to it.
> 
> Probably a better place to post it now would be in comp.sources.games.
> -- 
> 				Nathan Glasser

Okay, you can start being impressed.  I searched through a bunch of old tapes
and I found suicide.c AND suicide1.c.  I guess it pays to be a packrat.

I am posting the sources to comp.sources.games, per Nathan's suggestion.  They
run on SysV, but have unresolved external references on ULTRIX.  I probably
modified them to run on SysV five years ago; I don't remember.  It shouldn't
be too difficult to get them to run under BSD.



				Is it time for alt.suicide yet?

				John Opalko
				Washington State Home for the Bizarre

jgo@mcgp1.UUCP (John Opalko, N7KBT) (09/20/88)

In article <1576@mcgp1.UUCP>, I write:
> I am posting the sources to comp.sources.games, per Nathan's suggestion.

Just in case they never make it to the moderator (or if the moderator rends
them into tiny bits), I am also posting them to alt.sources.


						John

al@gtx.com (Alan Filipski) (09/20/88)

In article <754@gtx.com> al@gtx.UUCP (Alan Filipski) writes:
>Has anyone got a copy of Nathan Glasser's program suicide.c?
>It was posted to net.suicide in early January 1983.
>
>


If I may be allowed to follow-up to my own posting:

To the people who sent copies of the program or offered to dig it up:
thanks! my faith in the goodness and omniscience of the net is
restored, and I no longer need the program.  thanks anyway!




  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ( Alan Filipski, GTX Corp, 8836 N. 23rd Avenue, Phoenix, Arizona 85021, USA )
 ( {allegra,decvax,hplabs,amdahl,nsc}!sun!sunburn!gtx!al       (602)870-1696 )
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

P.S. I anyone does a rewrite, may I suggest hanging instead of jumping
(with concomitant tumescence, if that is not too much of a strain on
curses)?

jeff@uop.edu (Jeff Ferguson) (09/20/88)

In article <756@gtx.com>, al@gtx.com (Alan Filipski) writes:
> In article <754@gtx.com> al@gtx.UUCP (Alan Filipski) writes:
> >Has anyone got a copy of Nathan Glasser's program suicide.c?
> >It was posted to net.suicide in early January 1983.
> >
> >
> 
> 
> If I may be allowed to follow-up to my own posting:
> 
> To the people who sent copies of the program or offered to dig it up:
> thanks! my faith in the goodness and omniscience of the net is
> restored, and I no longer need the program.  thanks anyway!
> 

What does this program do, anyway?  If it wouldn't be too much trouble,
can I get a copy sent to me?  Thanks in advance.

=======================================================================
	"When I take out my bottle 		| jeff@uop.edu
	 Filled up high with gasoline           ----------------
	 You can tell by the night fires
	 Where Rael has been, has been."
			-- Genesis (from the days when they were
				    a *real* band) 
=======================================================================

cyn@donk.UUCP (cyn) (09/21/88)

Can you believe it??? I just happened to have it hangin around all
these years!!

++++++++++++<<snip>>++++++<<snip>>++<<snip>>++++++++++++++++++++

#include <curses.h>
#include <stdio.h>

main()
{
	int i,j;

	static int cx[] = {
      20, 25, 30, 40, 44, 48, 57 };

	static char *road[]={
	  "--------------------------------------------------------------",
	  " ",
	  " ",
	  " ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---",
	  " ",
	  " ",
	  "--------------------------------------------------------------" };
	static char *car[] = {
	  " _/-\__",
	  " =o--o+"};

	static char *guy[] ={
	  "o",
	  "X",
	  " "};

	static char *boom[] ={
	  "  .* .",
	  " ^ : .o. ",
	  " = \'$-# . ",
	  "  . /=./\ ",
	  "   . v .  "};

	static char *cry[] ={
	  "Hey!",
	  "You!",
	  "Watch out",
	  "for",	
	  "the",
	  "CAR !!!!"};

	static char *bye[] = {
	  " ",
	  " ",
	  " ",
	  "Bye",
	  "sick",
	  " world !!"};


	initscr();
	clear();
	printpic(road, 7, 8, 0);
	for (i=0; i < 60; i++){
		printpic(car, 2, 12, i);
		if (i%10 == 0) {
			j = i/10;
			printpic(guy, 3, 17-(j), 65);
			mvprintw(3, cx[j], cry[j]);
			mvprintw(20, cx[j]+18, bye[j]);
			if(j == 5)
				mvprintw(14, 64, "---");
		}
	}

	printpic(boom, 4, 11, 60);
	refresh();
	endwin();
	getchar();

}

printpic(pic, len, y, x)
char **pic;
int len, x, y;
{
	int i;
	for (i=0; i < len; i++)
		mvprintw(i + y, x, pic[i]);
	refresh();
}

	

billr@tekred.TEK.COM (Bill Randle) (09/23/88)

In article <1680@uop.edu> jeff@uop.edu (Jeff Ferguson) writes:
>> In article <754@gtx.com> al@gtx.UUCP (Alan Filipski) writes:
>> >Has anyone got a copy of Nathan Glasser's program suicide.c?
>
>What does this program do, anyway?  If it wouldn't be too much trouble,
>can I get a copy sent to me?  Thanks in advance.
>

The program displays an animated picture of a person jumping from a tree.
Variations include jumping from a tall building and jumping into the
path of an oncoming car. They are written in C, using curses.

The original and the two variations have been posted to comp.sources.games.

	-Bill Randle
	Moderator, comp.sources.games
	Tektronix, Inc.
	games@saab.CNA.TEK.COM