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 / 1990 / rules < prev    next >
Encoding:
Text File  |  1992-10-18  |  8.7 KB  |  219 lines

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