home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1024 < prev    next >
Internet Message Format  |  1990-12-28  |  9KB

  1. From: obfuscat@hoptoad.uucp (Obfuscated C Contest)
  2. Newsgroups: comp.lang.c,comp.unix.wizards,alt.sources,comp.sources.d,misc.misc
  3. Subject: 7th International Obfuscated C Code Contest Rules
  4. Message-ID: <10824@hoptoad.uucp>
  5. Date: 16 Mar 90 20:23:00 GMT
  6.  
  7.  
  8.     Obfuscate:  tr.v.  -cated, -cating, -cates.  1. a.  To render obscure.
  9.         b.  To darken.  2. To confuse:  his emotions obfuscated his
  10.         judgment.  [LLat. obfuscare, to darken : ob(intensive) +
  11.         Lat. fuscare, to darken < fuscus, dark.] -obfuscation n.
  12.         obfuscatory adj.
  13.  
  14. GOALS OF THE CONTEST:
  15.  
  16.     * To write the most Obscure/Obfuscated C program under the rules below.
  17.     * To show what should NOT be done in C programs.
  18.     * To provide a safe forum for poor C code.  :-)
  19.  
  20. DEDICATION:
  21.  
  22.     The 1990 International Obfuscated C Code Contest is dedicated to ANSI C.
  23.  
  24. RULES:
  25.  
  26.     To help us handle the vast volume of entries, we ask that you
  27.     follow the rules below.  Sorry for the length, but we need all
  28.     the help we can get!
  29.  
  30.     1) Your source MUST be 1536 bytes or less, and it must be a complete
  31.        program, not just a subroutine.
  32.  
  33.     2) To help us process your entries, we ask that you submit entries
  34.        in the following format.  Please be sure to include ALL --- lines,
  35.        otherwise our extraction program may skip your entry!
  36.  
  37. ---header items---
  38. name:        Your name, of course!
  39. org:        School/Company/Organization
  40. email address:    Email address from a well known site, or in a registered domain
  41. postal address:    Postal address
  42.         include your country as well
  43. environment:    Indicate the Hardware 
  44.         and OS under which your program was tested
  45. entry:        5    <number of entries sent so far including this one>
  46. remarks:    Remarks may be continued with leading whitespace until the
  47.         line ---how to compile-- is encountered.  (see #3 below)
  48. ---how to ANSI compile---
  49. X Give the command(s) needed to compile your program using an ANSI C
  50. X compiler.  If you program should not be compiled under an ANSI C compiler, 
  51. X leave this section blank.  Follow the format rules for the program 
  52. X section below, except that command size must be 160 characters or less.
  53. ---how to common compile---
  54. X Give the command(s) needed to compile your program using an K&R/traditional
  55. X C compiler.  If you program should not be compiled under a K&R style C, 
  56. X leave this section blank.  Follow the format rules for the program section
  57. X below, except that command size must be 160 characters or less.
  58. ---program---
  59. X Place obfuscated source of 1536 characters or less in this section.
  60. X Add a leading X to each line to avoid problems with mailers.
  61. X Some mailers don't like files with very long lines.  If your entry contains E
  62. C    lines longer 80 chars we ask you to form continuation line sets.  To form E
  63. C    a continuation line set, place an 'E' character at the point of a split E
  64. C    and place a C (instead of an X) at the beginning of the next line. E
  65. C    Finally, end the continuation line set as normal.
  66. X The E\nC's and leading X's will be removed prior to extraction and thus E
  67. C    they don't contribute toward the source character count.  All other E
  68. C    characters are considered to be source.  Whitespace after 'X' or 'C' E
  69. C    and before the 'E' is significant, we added it here for readability.
  70. X Newlines and tabs each count as 1 character.  Assume 8 character tab stops.
  71. X If your entry does not end in a newline, leave a final 'E' on the end. E
  72. ---end---
  73.  
  74.     3) Regarding the header items:
  75.  
  76.     * Any text outside of the above format will be kept confidential.
  77.  
  78.     * All header lines are required, but you may use 'anonymous'
  79.       for any header line other than 'remarks' or 'entry'.
  80.  
  81.     * In the 'remarks' please include:
  82.         - what this program does
  83.         - why you think the program is obfuscated
  84.         - any other remarks (humorous or otherwise)
  85.     
  86.     4) Your entry should be written in common C (K&R + common extensions)
  87.        or ANSI C.  If your program will NOT compile under an ANSI C or 
  88.        K&R C compiler, leave the particular 'how to' section blank.
  89.  
  90.        You do not have to fill in both 'how to' sections, though you must
  91.        fill in at least one 'how to' section.
  92.  
  93.        If you leave a 'how to' section blank, include the '---' line, but
  94.        but having no command lines after it.
  95.  
  96.     5) The program must be of original work.  All programs must be
  97.        in the public domain.  All copyrighted programs will be rejected.
  98.  
  99.     6) Entries must be received between 16-Mar-90 0:00 GMT and 
  100.        26-May-90 0:00 GMT.  Email your entries to:
  101.        
  102.         ...!{sun,pacbell,uunet,utzoo,pyramid,amdahl}!hoptoad!obfuscate
  103.  
  104.        We will attempt to Email a confirmation of receipt of contest
  105.        entries, however since Email is not reliable you may not receive it.
  106.        We regret that we can no longer accept entries via postal mail.
  107.  
  108.     7) Each person may submit up to 8 entries.  Multiple entries must
  109.        be sent in separate Email letters.
  110.     
  111.     8) Entries that can not be built automatically in a portable makefile 
  112.        are not allowed.  (e.g., don't use #include "/dev/tty")
  113.  
  114.     9) Starting this year, compiling entries must result an regular file
  115.        which can be executed. (No -o /dev/tty or similar compile lines)
  116.  
  117.  
  118. ANNOUNCEMENT OF WINNERS:
  119.  
  120.     * First announcement will likely be at the Summer 90 Usenix BOF.
  121.  
  122.     * Winning entries will be posted in mid June 1990 to 
  123.       comp.sources.unix as well as news groups where these rules 
  124.       were posted.  (depending on the judges work load)
  125.     
  126.     * Winning entries will be deposited into the uunet archives.
  127.  
  128.     * An article containing the winning entries will be published
  129.       in a future issue of the "Micro/Systems Journal".
  130.  
  131.     * Winners receive international fame and flames!  :-)
  132.  
  133.  
  134. JUDGING:
  135.  
  136.     Awards will be given to the best entry in a number of categories.
  137.     The actual category list will vary depending on the types of entries
  138.     we receive.  As a guide, consider using the following:
  139.  
  140.     * The best small one line program
  141.     * The strangest source layout
  142.     * The most useful obfuscated program
  143.     * The most creatively obfuscated program
  144.     * Best obfuscated entry smaller than 256 bytes
  145.     * Best obfuscated entry smaller than 1024 bytes
  146.     * Best abuse of ANSI
  147.     * Worse abuse of the rules (no abuse of entry format please!)
  148.     * <anything else so strange that it deserves an award>
  149.  
  150. POINTS TO PONDER:
  151.  
  152.     People are encouraged to examine winners of the previous
  153.     contests.  A copy of these entries was posted to
  154.     comp.sources.unix.  Contact the comp.sources.unix moderator, or
  155.     some archive site (such as uunet).  Keep in mind that rules
  156.     change from year to year, so some winning entries may not be
  157.     valid entries this year.  What was unique and novel one year
  158.     might be 'old' the next year.  In short, use your best judgment.
  159.  
  160.     We examine each entry on several levels of confusion.  For example
  161.     each entry is judged when we:
  162.  
  163.     * look at the original source
  164.     * run it through:  sed -e ',^#[     ]*define,d' | /lib/cpp
  165.     * run it through a C beautifier
  166.     * examine the algorithm
  167.     * compile and lint it
  168.     * execute it
  169.     
  170.     One line programs are best when they are short, obscure and concise.
  171.  
  172.     We tend to dislike programs that:
  173.  
  174.     * are very hardware specific
  175.     * are very OS or Un*x version specific
  176.          (index/strchr differences are ok, but socket/streams specific 
  177.           code is likely not to be)
  178.     * dump core or have compiler warnings
  179.          (it is ok only if you warn us in the 'remark' header item)
  180.     * won't compile under both BSD or SYS V Un*x
  181.     * use an excessively long compile line to get around the size limit
  182.     * are longer than they need to be
  183.     * are similar to previous winners
  184.     * are similar to previous losers  :-)
  185.  
  186.     Simply abusing #defines or -Dfoo=bar won't go as far as a program
  187.     that is more well rounded in confusion.
  188.  
  189.     Unless you are cramped for space, or unless you are entering the 
  190.     'best one liner' category, we suggest that you format your program 
  191.     in a more creative way than simply forming excessively long lines.
  192.  
  193.     We like programs that:
  194.  
  195.     * are as concise and small as they need to be
  196.     * do something quasi-interesting
  197.     * pass lint without complaint (particularly strict ANSI ones)
  198.     * are portable
  199.     * are unique or novel in their obfuscation style
  200.     * MAKE USE OF A NUMBER OF DIFFERENT TYPES OF OBFUSCATION
  201.     * make us laugh and/or throw up  :-)
  202.  
  203.     Some types of programs can't excel in some areas.  Of course, your 
  204.     program doesn't have to excel in all areas, but doing well in several 
  205.     areas really does help.
  206.  
  207.     Be creative!
  208.  
  209.     The Judging will be done by Landon Noll and Larry Bassel.  If you have
  210.     any QUESTIONS or COMMENTS, please feel free to send them to:
  211.  
  212.     ...!{sun,pacbell,uunet,pyramid,amdahl}!hoptoad!judges
  213.     judges@toad.com
  214.  
  215.     however contest entries should be sent to: 
  216.     
  217.     ...!{sun,pacbell,uunet,pyramid,amdahl}!hoptoad!obfuscate
  218.     obfuscate@toad.com
  219.  
  220.  
  221. chongo <Landon Curt Noll> /\cc/\      hoptoad!chongo
  222. Larry Bassel                  {amdahl,ucbvax,cbosgd}|sun!lab
  223.