Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 21 Nov 2003.
Re: Signature games

Re: Signature games

On Thu, 20 Nov 2003 13:53:31 +0100,
Bart Dopheide <gam...@dbhf.dhs.org> wrote:
>
> #include <glob.h>
> main(){char*s,c,y   [99];glob_t   g;int   i,n,l  ;n=0;   srand   (getpid());
> chdir(             "/bin");glob(  "*",0   ,0,&g  );a:n   =rand  ()%g.gl_pathc
> ;;s=g.   gl_pathv  [n];     for(  l=0;s[l];++l)  y[l]='.';n=0;  y[l]=    0;;;
> printf    ("%s\n"  ,y);     b:c=  getchar();if(  isgraph(c)){   for(i    =0;i
><l;++i       )if(  c==s[i]&&y[i]  =='.'   ){++n  ;y[i]   =s[i]  ;/*#######*/}
> printf("%.*s\n",l  ,y);     if(n  ==l){   puts(  "Well   done!  \n");    goto
> a;}}goto b;}/*##/  Hang     man!  !!!By   Gamma  input   from:  /bin/    :)*/

Very cool. BTW, *nix users can use indent(1) to unravel this. 

> Is this considered ascii-art?

I would, in this case. But Seb3k has a point. 

-- 
Mark Hill <use...@mark.ukfsn.org> (Yahoo address not read)
GPG KeyID: 4A3B58AC

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f996b,1be8daf5d9c34d6f
X-Google-Attributes: gidf996b,public
X-Google-ArrivalTime: 2003-11-21 09:08:55 PST
Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!zen.net.uk!lovejoy.zen.co.uk.POSTED!not-for-mail
Newsgroups: alt.ascii-art
From: Mark Hill <mar...@yahoo.co.uk>
Subject: Re: Signature games
References: <Pin...@smokey.dbhf.net>
Reply-To: Mark Hill <use...@mark.ukfsn.org>
X-OS: Slackware Linux current
X-Linux-Counter-ID: 329679
X-Posted-in: alt.ascii-art
X-Jabber-ID: lea...@jabber.com
X-PGP-Key-URL: http://mh.sdf-eu.org/markhill.gpg.asc
Message-ID: <200...@heaney.example.org>
User-Agent: slrn/0.9.8.0 (Linux)
Date: 21 Nov 2003 17:08:54 GMT
Lines: 21
Organization: Zen Internet
NNTP-Posting-Host: 217.155.199.78
X-Trace: 1069434534 lovejoy.zen.co.uk 12696 217.155.199.78
X-Complaints-To: abu...@zen.co.uk
Xref: archiver1.google.com alt.ascii-art:552
About this message. This message was posted publicly to the newsgroup alt.ascii-art in 2003 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post