Shop OBEX P1 Docs P2 Docs Learn Events
Flight sim prog in 1536 bytes — Parallax Forums

Flight sim prog in 1536 bytes

HollyMinkowskiHollyMinkowski Posts: 1,398
edited 2011-05-12 04:55 in General Discussion
In C, for X Windows.
Not a good example of a proper C program.
But this obfuscated code is pretty cool.
Is said to really work.
winning entry in the 1998 ‘International Obfuscated
C Code Contest’ (IOCCC), in the ‘Best of Show’ category.

If you ever questioned why Chip designed Spin so that
sensible formatting was required..this is why :-)

3703672103.jpg

Comments

  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2011-05-12 03:51
    X Windows? So this will actually compile and run on Linux?

    From the looks of it, I'd say one should never trust a computer programmer to make it easy to share their code.
  • HollyMinkowskiHollyMinkowski Posts: 1,398
    edited 2011-05-12 03:55
    Yes, it runs on Linux.
    Contest entries are required to actually work.

    This is a graphical virtual simulation of a plane
    called a Piper Cherokee..in actual flight.
  • Dave HeinDave Hein Posts: 6,347
    edited 2011-05-12 04:55
    The interesting thing is that this program is perfectly readable to a C programmer. The indent utility would pretty it up for the rest of the world to read. To me, this actually shows the advantage of using a block-delimited syntax versus one that uses indentation.
Sign In or Register to comment.