home *** CD-ROM | disk | FTP | other *** search
/ ftp.cse.unsw.edu.au / 2014.06.ftp.cse.unsw.edu.au.tar / ftp.cse.unsw.edu.au / pub / doc / languages / C / ioccc / 1991-Obfuscated-C-Code-Contest-Rules < prev    next >
Encoding:
Internet Message Format  |  1992-10-18  |  10.6 KB

  1. Path: usage.csd.unsw.oz.au!metro!munnari.oz.au!samsung!uakari.primate.wisc.edu!dali.cs.montana.edu!ogicse!ucsd!pacbell.com!pacbell!rtech!cpsc6a!hoptoad!chongo
  2. From: chongo@hoptoad.uucp (Landon C. Noll)
  3. Newsgroups: comp.lang.c,comp.sources.d,comp.unix.internals,alt.sources,misc.misc
  4. Subject: 8th International Obfuscated C Code Contest rules
  5. Keywords: IOCCC
  6. Message-ID: <15949@hoptoad.uucp>
  7. Date: 8 Mar 91 14:31:40 GMT
  8. Expires: 16 May 91 00:00:00 GMT
  9. Reply-To: chongo@hoptoad.UUCP (Landon C. Noll)
  10. Organization: Nebula Consultants in San Francisco
  11. Lines: 268
  12. Xref: usage.csd.unsw.oz.au comp.lang.c:14681 comp.sources.d:4249 comp.unix.internals:2393 alt.sources:1447 misc.misc:1611
  13.  
  14. Here are the rules for the new International Obfuscated C Code Contest!
  15. The rules have been updated slightly from 1990.  Please note that the
  16. contest ends 16-May-1991 (a few days earler thanb last year) to give us 
  17. (Larry Bassel and I) more time to judge all the contest entries.
  18.  
  19. Good Luck!
  20.  
  21.  =-=-=
  22.  
  23. 8th International Obfuscated C Code Contest Rules
  24.  
  25.     Obfuscate:  tr.v.  -cated, -cating, -cates.  1. a.  To render obscure.
  26.         b.  To darken.  2. To confuse:  his emotions obfuscated his
  27.         judgment.  [LLat. obfuscare, to darken : ob(intensive) +
  28.         Lat. fuscare, to darken < fuscus, dark.] -obfuscation n.
  29.         obfuscatory adj.
  30.  
  31.  
  32. GOALS OF THE CONTEST:
  33.  
  34.     * To write the most Obscure/Obfuscated C program under the rules below.
  35.     * To show what should NOT be done in C programs.
  36.     * To provide a safe forum for poor C code.  :-)
  37.  
  38.  
  39. DEDICATION:
  40.  
  41.     The 1991 IOCCC is dedicated to the ANSI C pre-processor.
  42.  
  43.  
  44. RULES:
  45.  
  46.     To help us handle the vast volume of entries, we ask that you follow the
  47.     rules below.  SORRY FOR THE LENGTH, BUT WE NEED ALL THE HELP WE CAN GET!
  48.  
  49.     1) Your source MUST be 1536 bytes or less.   It must be a complete program.
  50.  
  51.     2) To help us process your entries, we ask that you submit entries
  52.        in the following format.  Please be sure to include ALL --- lines,
  53.        otherwise our extraction program may skip your entry!
  54.  
  55. ---header items---
  56. name:        Your name, of course!
  57.  
  58. org:        School/Company/Organization
  59.  
  60. email address:    Email address from a well known site, or in a registered domain
  61.  
  62. postal address:    Postal address
  63.         include your country as well
  64.  
  65. environment:    Indicate the Hardware
  66.         and OS under which your program was tested
  67.  
  68. entry:        5    <i.e., entry number from 0 to 7 inclusive>
  69.  
  70. remark:        Remarks about the program.  See rule #3 below for details.
  71. ---how to ANSI compile---
  72. Give the command(s) needed to compile your program using an ANSI C
  73. compiler.  If your program should not be compiled under an ANSI C compiler,
  74. leave this section blank.  The command size must be 160 characters or less.
  75. ---how to common compile---
  76. Give the command(s) needed to compile your program using an K&R/traditional
  77. C compiler.  If your program should not be compiled under a K&R style C,
  78. leave this section blank.  The command size must be 160 characters or less.
  79. ---program---
  80. Not everyone has a program such as uuencode, and we don't want to blindly
  81. process a shar file, so we ask that you format your source as follows:
  82.  
  83. Add a leading X to EACH line, unless it is a split line.   (see below)
  84.  
  85. Some mailers don't like long lines.  To be safe, split lines longer than 80
  86.     characters.  To split a line, place an E at the point of a split and
  87.     place a C (instead of an X) at the beginning of the next line.
  88.  
  89. If the program does not end in a newline, end the last line with an E.
  90.  
  91. Leading X's, trailing E's followed by the two characters "\nC", and an E
  92.     at the last character of the last line are not considered to part of the
  93.     source and thus don't contribute toward the source character count.
  94.     Be careful with lines ending in "E\n", see the example below.
  95.  
  96. Newlines and tabs each count as 1 character.  Assume 8 character tab stops.
  97.  
  98. The newlines here were placed for reasons of readability.  In your entry,
  99.     every line in this section must begin with either an X or a C.
  100.  
  101. Example:
  102.  
  103. XThis is a single line containing 79 E
  104. Ccharacters including the E
  105. Cfinal newline.
  106. XThe next line contains only a single newline.
  107. X
  108. XThis line is terminated by a newline preceded by an EE
  109. C
  110. XThis last line is not terminated by a newline and ends in an EE
  111. ---end---
  112.  
  113.     3) Regarding the header items:
  114.  
  115.     * Any text outside of the above format will be kept confidential.
  116.  
  117.     * All header lines are required, but you may use 'anonymous'
  118.       for any header line other than 'remarks' or 'entry'.
  119.  
  120.     * Only the '---program---' section uses the 'X', 'C', 'E' notation.
  121.  
  122.     * In the 'remark' item, please include:
  123.         - what this program does
  124.         - why you think the program is obfuscated
  125.         - any other remarks (humorous or otherwise)
  126.         - By default, we will select your program source and/or binary
  127.           filename.  If your entry REQUIRES a specific source and/or
  128.           binary filename, please say so in the remark section.
  129.         - If this entry is a re-submission of a previous entry.
  130.  
  131.     4) Your entry should be written in common C (K&R + common extensions)
  132.        or ANSI C.  If your program will NOT compile under an ANSI C or
  133.        K&R C compiler, leave the particular 'how to' section blank.
  134.        If you leave a 'how to' section blank, include the '---' line.
  135.  
  136.        You do not have to fill in both 'how to' sections, though you must
  137.        fill in at least one 'how to' section.  If you leave a 'how to'
  138.        section blank, include the '---' line anyway.
  139.  
  140.     5) The program must be of original work.  All programs must be
  141.        in the public domain.  All copyrighted programs will be rejected.
  142.  
  143.     6) Entries must be received between 06-Mar-91 0:00 UTC and
  144.        16-May-91 0:00 UTC.  Email your entries the address found below.
  145.        (UTC is essentially equivalent to Greenwich Mean Time)
  146.  
  147.        We will attempt to Email a confirmation of receipt of contest
  148.        entries, however since Email is not reliable you may not receive it.
  149.        We regret that we can no longer accept entries via postal mail.
  150.  
  151.     7) Each person may submit up to 8 entries.  Only 1 entry per Email
  152.        letter.  If you submit multiple entries, be sure that each has a
  153.        unique entry number.
  154.  
  155.        We will discard all but the latest email in the case of multiple
  156.        entries with the same entry number.  Thus, if you wish to correct
  157.        a previously sent entry, re-send it with the same entry number.
  158.        Just to be sure email does not arrive out or sequence, note that 
  159.        fact in the 'remark' item.
  160.  
  161.     8) Entries requiring human interaction to be built are not allowed.  
  162.        (for example, don't use #include "/dev/tty")
  163.  
  164.     9) Compiling an entry must result a regular file which may be executed.
  165.        (for example, don't use -o /dev/tty)
  166.  
  167.  
  168. ANNOUNCEMENT OF WINNERS:
  169.  
  170.     * First announcement will likely be at the Summer 91 Usenix conference.
  171.  
  172.     * Winning entries will be posted in mid June 1991 to
  173.       comp.sources.unix as well as news groups where these rules
  174.       were posted.  (depending on the judges work load)
  175.  
  176.     * Winning entries will be deposited into the uunet archives.
  177.  
  178.     * An article containing the winning entries will be published
  179.       in a future issue of the "Micro/Systems Journal".
  180.  
  181.     * Winners receive international fame and flames!  :-)
  182.  
  183.  
  184. JUDGING:
  185.  
  186.     Awards will be given to the best entry in a number of categories.
  187.     The actual category list will vary depending on the types of entries
  188.     we receive.  As a guide, consider using the following:
  189.  
  190.     * The best small one line program
  191.     * The strangest source layout
  192.     * The most useful obfuscated program
  193.     * The most creatively obfuscated program
  194.     * Best obfuscated entry smaller than 256 bytes
  195.     * Best obfuscated entry smaller than 1024 bytes
  196.     * Best abuse of ANSI C
  197.     * Worse abuse of the rules (no abuse of entry format please!)
  198.     * <anything else so strange that it deserves an award>
  199.  
  200.  
  201. POINTS TO PONDER:
  202.  
  203.     People are encouraged to examine winners of the previous contests.
  204.     A copy of these entries has been posted to comp.sources.unix.
  205.     Contact the comp.sources.unix moderator, or some archive site (such
  206.     as uunet).  Keep in mind that rules change from year to year, so some
  207.     winning entries may not be valid entries this year.  What was unique
  208.     and novel one year might be 'old' the next year.
  209.  
  210.     We examine each entry on several levels of confusion.  For example
  211.     each entry is judged when we:
  212.  
  213.     * look at the original source
  214.     * If it is ANSI, convert tri-graphs to ASCII
  215.     * C pre-process the source ignoring '#include' '#define' lines
  216.     * C pre-process the source ignoring '#define' and '#include' lines
  217.     * run it through a C beautifier
  218.     * examine the algorithm
  219.     * lint it
  220.     * compile it
  221.     * execute it
  222.  
  223.     One line programs are best when they are short, obscure and concise.
  224.  
  225.     We tend to dislike programs that:
  226.  
  227.     * are very hardware specific
  228.     * are very OS or Un*x version specific
  229.          (index/strchr differences are ok, but socket/streams specific
  230.           code is likely not to be)
  231.     * dump core or have compiler warnings
  232.          (it is ok only if you warn us in the 'remark' header item)
  233.     * won't compile under both BSD or SYS V Un*x
  234.     * use an excessively long compile line to get around the size limit
  235.     * obfuscate by excessive use of ANSI tri-graphs
  236.     * are longer than they need to be
  237.     * are similar to previous winners
  238.     * are similar to previous losers  :-)
  239.  
  240.     Simply abusing #defines or -Dfoo=bar won't go as far as a program
  241.     that is more well rounded in confusion.
  242.  
  243.     Unless you are cramped for space, or unless you are entering the
  244.     'best one liner' category, we suggest that you format your program
  245.     in a more creative way than simply forming excessively long lines.
  246.  
  247.     We like programs that:
  248.  
  249.     * are as concise and small as they need to be
  250.     * do something at least quasi-interesting
  251.     * pass lint without complaint (not a requirement, but it is nice)
  252.     * are portable
  253.     * are unique or novel in their obfuscation style
  254.     * MAKE USE OF A NUMBER OF DIFFERENT TYPES OF OBFUSCATION
  255.     * make us laugh and/or throw up  :-)
  256.  
  257.     Some types of programs can't excel in some areas.  Of course, your
  258.     program doesn't have to excel in all areas, but doing well in several
  259.     areas really does help.  A humorous note in the remark section helps.
  260.  
  261.     Be creative!
  262.  
  263.  
  264. EMAIL ADDRESSES
  265.  
  266.     Send contest entries to:
  267.  
  268.     ...!{sun,pacbell,uunet,pyramid,amdahl}!hoptoad!obfuscate
  269.     obfuscate@toad.com
  270.  
  271.     The Judging will be done by Landon Noll and Larry Bassel.  If you have 
  272.     questions or comments (no entries), please feel free to email them to:
  273.  
  274.     ...!{sun,pacbell,uunet,pyramid,amdahl}!hoptoad!judges
  275.     judges@toad.com
  276.  
  277.  
  278. chongo <Landon Curt Noll> /\cc/\      hoptoad!chongo
  279. Larry Bassel                  {amdahl,ucbvax,cbosgd}|sun!lab
  280. -- 
  281. For a good prime, call:  391581 * 2^216193 - 1
  282.