Files
ioccc/2012/dlowe
Landon Curt Noll dbf6921b3a use include 1337.mk to hold 1337 hacker rulz
Updated 1337 hacker rulz to version 7.

Added `1337.mk` to contain the updated 1337 hacker rulz (v7).

We use an optional include of `1337.mk` (or `../1337.mk`,
or `../../1337.mk`) to include the 1337 hacker rulz.

Changed `make deep_magic` to `make more_magic`.

Changed `bin/tar-entry.sh` VERSION from "1.3.7 2024-07-22"
to "1.3.8 2024-07-23".

Changed `bin/tar-year.sh` VERSION from "1.2.5 2024-07-22"
to "1.2.6 2024-07-23".

Add `make new_entry` to `YYYY/Makefile` and `template/Makefile.year`.

Change `make new_year` to use `sort -n -u`.

Made minor debug message fixes to `bin/new-year.sh`.

Changed `bin/new-year.sh` VERSION from "1.3 2024-07-23"
to "1.3.1 2024-07-23".

Improved `bin/add-dir.sh` to update `YYYY/Makefile` with
the new entry directory name.

Changed `bin/add-dir.sh` VERSION from "1.0 2024-07-21"
to "1.1 2024-07-23".

Performed `make www` to accomplish the above and to test under macOS.
2024-07-23 22:45:16 -07:00
..
2020-12-30 16:57:03 -08:00
2020-12-30 16:57:03 -08:00
2023-07-06 21:49:38 -07:00
2020-12-30 16:57:03 -08:00
2020-12-30 16:57:03 -08:00

To build:

    make

NOTE: this entry requires the X11/Xlib.h header file and the X11 library to compile. For more information see the FAQ on "X11".

Bugs and (Mis)features:

The current status of this entry is:

STATUS: INABIAF - please DO NOT fix

For more detailed information see 2012/dlowe in bugs.html.

To use:

    ./dlowe

Try:

    ./dlowe

Watch for a while if you like, then press a key within the window.

Use up and down keys to escape death.

Judges' remarks:

The judges lose playing this game. This entry wins!

Q: How did we get past the variadic macro problem on a Mac?

A: Don't use -pedantic-errors in the Makefile.

Author's remarks:

Conway's Game of DEATH

This is a challenging, fast-paced arcade game, based on the famous Game of Life.

Story

In the game, you are Mr.C, a lightweight spaceship making a futile dash for escape from the rigid rules and predictability of life in the B3/S23 universe.

Use the up and down arrow keys to steer: collisions are fatal for Mr.C! Learn to spot incoming gliders, skim the surfaces of beehives and blocks, and give blinkers plenty of space. Things get crazier as Mr.C picks up speed... can he escape?

No. There is no winning. Sadly for Mr.C, this universe goes on forever. Just see how far you can make it!

Press q any time to quit.

Features

  • casual gameplay
  • infinite, procedurally generated universe
  • progressive difficulty
  • animated splash screens

Limitations

  • Flicker, especially at high speeds, and in spite of "double-buffering" (X11 doesn't make it possible to lock drawing to the display refresh rate.)
  • Cannot be run outside of the directory containing the data files (splash.d, dead.d and sprites.d).
  • Cannot build or run without X11 (or an X11 compatibility layer).

Wish List

  • Score keeping
  • Color
  • In-game instructions
  • Sound

Hosts Tested

  • Darwin 10.8.0 i386 (clang 1.6 and gcc 4.2.1)
  • Linux 2.6.32 i686 (clang 1.1 and gcc 4.4.3)
  • Linux 3.2.0 x86_64 (clang 3.0 and gcc 4.6.3)

Obfuscations

The code is formatted into a 14-cell shape which will evolve into a glider in 19 generations.

Lots of globals, including a global struct whose members have the same names as global variables.

Global variables getting reused in different contexts.

Huge and convoluted expressions, abusing ternary operators and operator precedence.

Lots of magic numbers, abuse of the relationships between magic numbers, and abuse of the arithmetic properties of magic numbers.