IOCCC image by Matt Zucker

The International Obfuscated C Code Contest

2025/howe - Most likely to invade

Invaders game

Author:

Award: Most likely to invade

To build:

    make all

To use:

    # Press TAB to aim:       Cycles through target choices before firing
    # Press ENTRY to Fire:    Kill lowest matching invader
    # Press ^C to quit early

    ./prog

Try:

    ./try.sh

Alternate code:

For an ASCII only version:

    diff -w prog.c prog.alt.c

Alternate build:

    make alt

Alternate use:

    # Press TAB to aim:       Cycles through target choices before firing
    # Press ENTRY to Fire:    Kill lowest matching invader
    # Press ^C to quit early

    ./prog.alt

Judges’ remarks:

How long can you evade the invasion?

This entry is one of the smaller games we have seen. What helps it to be smaller than it would have to be years ago?

A fun challenge

Create an alternative form of prog.c (i.e., prog.alt.c) that is slightly harder to play by allowing the closest invader to be killed. Compensate slightly for that difficulty increase by allowing the shift TAB key to cycle in the opposite direction of the TAB key.

The above fun challenge is still open. See the “Fun challenge Info” section for details.

Author’s remarks:

Overview

August 1980 Casio released the MG-880 calculator with a music keyboard and Space Invaders like game. The device was extremely popular with kids at the time (oh hum). In 2018 Casio released the SL-880 calculator that revived the game. This entry implements a variant of that game for the command line, something you can play at your desk, in the office, when you need a brief distraction from coding (or judging the IOCCC).

Building

Simply type make to build. These macros can be customised:

There is a smaller second version, prog.alt.c, that is ASCII only and more closely resembles the original game visually. Simply type make prog.alt.

What’s Interesting

Inventory for 2025/howe

Primary files

Secondary files


 Jump to: top