Add preview of 1984-2019

The 2020 winners are hinted it, but the source code is not there,
nor are the hints. Someone could look into the HTML and
see what was commented out, but that is not a problem because
WHO won is known and the name of their AWARD is known already.
Moreover a number of the winners have talked about what their
entirs do, so the commented out spoiler text is not a bit problem.

One will find HTML commented out with:

    <!-- XXX remove when 2020 is ready
    2020 links here
    XXX remove when 2020 is ready -->

The "XXX remove when 2020 is ready" string is found at the
start and end comment blocks.  Again, soneone could read
what was commented out, but that is OK since most of that
information is known or can be known.  The following files
have such HTML comment blocks in them.

    ./winners.html
    ./years-spoiler.html
    ./years.html

In addition, ./all/summary.txt was modified to not
include the 2020 entries for the momemt.

The 2020 winner code AND write-ups are NOT part of this set.

p.s. The all/all.tar.bz2 does not contain the 2020 source code (yet?).
This commit is contained in:
Landon Curt Noll committed 2020-12-30 16:57:03 -08:00
1 parent 28efc67f5d
commit c0663537cb
1683 files changed
+220064

No files matched your search

+421
View File
@@ -0,0 +1,421 @@
#!/usr/bin/env make
#
# 2015 makefile
#
# This work by Landon Curt Noll, Simon Cooper, and Leonid A. Broukhis
# is licensed under:
#
# Creative Commons Attribution-ShareAlike 3.0 Unported License.
#
# See: http://creativecommons.org/licenses/by-sa/3.0/
################
# tool locations
################
#
SHELL= /bin/bash
CP= cp
CPP= cpp
GUNZIP= gunzip
BUNZIP2= bunzip2
LD= ld
MAKE= make
RM= rm
SED= sed
TAR= tar
TRUE= true
MKDIR= mkdir
MV= mv
TR= tr
GREP= grep
SORT= sort
UNIQ= uniq
# Set X11_LIBDIR to the directory where the X11 library resides
#
#X11_LIBDIR= /usr/X11R6/lib
#X11_LIBDIR= /usr/X11/lib
X11_LIBDIR= /opt/X11/lib
# Set X11_INCLUDEDIR to the directory where the X11 include files reside
#
#X11_INCDIR= /usr/X11R6/include
#X11_INCDIR= /usr/X11/include
X11_INCDIR= /opt/X11/include
# Compiler warnings
#
#CWARN=
#CWARN= -Wall
#CWARN= -Wall -Wextra
CWARN= -Wall -Wextra -pedantic ${CSILENCE}
#CWARN= -Wall -Wextra -Weverything
#CWARN= -Wall -Wextra -Weverything -pedantic
#CWARN= -Wall -Wextra -Weverything -pedantic ${CSILENCE}
# Silence warnings that ${CWARN} would normally complain about
#
#CSILENCE=
CSILENCE= -Wno-parentheses -Wno-implicit-function-declaration \
-Wno-missing-variable-declarations
# compiler standard
#
#CSTD=
#CSTD= -ansi
CSTD= -std=c11
# compiler bit architecture
#
# Some entries require 32-bitness:
# ARCH= -m32
#
# Some entries require 64-bitess:
# ARCH= -m64
#
# By default we assume nothing:
#
ARCH=
# defines that are needed to compile
#
#CDEFINE=
CDEFINE= -DU=${DU} -DD=${DD} -DW=${DW} -DH=${DH} -DA=${DA} -DI=${DI} \
-DB=${DB} -DF=${DF} -DG=${DG}
# Game parameters
#
DU=99999 # Time between steps in microseconds.
# Make it larger if the game is too fast for you.
DW=28 # Pipe-to-pipe spacing, in columns.
# Farther apart is easier.
DD=20 # Space between pipes.
# The difference between DD and DW is the width of a pipe.
# Narrow pipes are easier to fly though.
DH=8 # Height of gap in pipe.
# Make this larger to make the game easier.
DA=100 # Acceleration due to gravity (scaled by 256).
# Smaller values make you glide slower.
DI=-200 # Impulse velocity of a flap (scaled by 256).
# Make larger if you want an less intense tapping experience!
DB='"<o^="' # Sprite for player when gliding.
# HINT: Try using various emoji.
# NOTE: The string MUST be enclosed inside double quotes.
DF='"<ov="' # Sprite for player when flapping.
# HINT: Try using various emoji.
# NOTE: The string MUST be enclosed inside double quotes.
DG='"Tap to Flap!"' # Instruction text.
# Change to your native tongue.
# NOTE: The string MUST be enclosed inside double quotes.
# include files that are needed to compile
#
CINCLUDE=
# optimization
#
# Most compiles will safely use -O2. Some can use only -O1 or -O.
# A few compilers have broken optimizers or this entry make break
# under those buggy optimizers and thus you may not want anything.
# Reasonable compilers will allow for -O3.
#
#OPT=
#OPT= -O
#OPT= -O1
#OPT= -O2
OPT= -O3
# default flags for ANSI C compilation
#
CFLAGS= ${CWARN} ${CSTD} ${ARCH} ${CDEFINE} ${CINCLUDE} ${OPT}
# Libraries needed to build
#
#LIBS=
LIBS= -lcurses
#
# Here's some fun makefile overrides to try. Pass them in by adding to the
# make commandline, eg
#
# make EMOJI=beer LANGUAGE=spanish
#
# Note that use of the EMOJI path may require different include and linker
# options depending on how your system is set up. The basic requirements is
# a copy of ncurses that that supports "wide" characters. That could be
# called -lcurses, -lncurses or -lncurses, depending on how it was installed.
# it also might have been installed in a subdirectory and needs to be found
# with a different include and/or library path.
#
ifdef EMOJI
# You may need to uncomment some of these, depending on your system
# LIBS= -lncursesw
# CINCLUDE= -I/usr/local/include/ncursesw
ifeq ($(EMOJI),beer)
DB='"\xf0\x9f\x8d\xba"'
DF='"\xf0\x9f\x8d\xbb"'
endif
ifeq ($(EMOJI),smile)
DB='"\xf0\x9f\x98\x84"'
DF='"\xf0\x9f\x98\x81"'
endif
ifeq ($(EMOJI),bipolar)
DB='"\xf0\x9f\x98\xa8"'
DF='"\xf0\x9f\x98\xa1"'
endif
ifeq ($(EMOJI),toilet)
DB='"\xf0\x9f\x9a\xbd"'
DF='"\xf0\x9f\x92\xa6"'
endif
ifeq ($(EMOJI),ET)
DB='"\xf0\x9f\x9a\xb4"'
DF='"\xf0\x9f\x91\xbd"'
endif
ifeq ($(EMOJI),rocket)
DB='"\xf0\x9f\x9a\x80"'
DF='"\xf0\x9f\x92\xa5"'
endif
ifeq ($(EMOJI),frylock)
DB='"\xf0\x9f\x8d\x9f"'
DF='"\xf0\x9f\x8e\x89"'
endif
ifeq ($(EMOJI),meatwad)
DB='"\xf0\x9f\x8d\x98"'
DF='"\xf0\x9f\x8d\x96"'
endif
ifeq ($(EMOJI),chicken)
DB='"\xf0\x9f\x90\x93"'
DF='"\xf0\x9f\x92\xa8"'
endif
ifeq ($(EMOJI),chick)
DB='"\xf0\x9f\x90\xa4"'
DF='"\xf0\x9f\x90\xa5"'
endif
ifeq ($(EMOJI),finger)
DB='"\xf0\x9f\x91\x88"'
DF='"\xf0\x9f\x91\x86"'
endif
ifeq ($(EMOJI),heart)
DB='"\xf0\x9f\x92\x93"'
DF='"\xf0\x9f\x92\x97"'
endif
ifeq ($(EMOJI),poop)
DB='"\xf0\x9f\x92\xa9"'
DF='"\xf0\x9f\x92\xa8"'
endif
ifeq ($(EMOJI),money)
DB='"\xf0\x9f\x92\xb5"'
DF='"\xf0\x9f\x92\xb8"'
endif
ifeq ($(EMOJI),book)
DB='"\xf0\x9f\x93\x98"'
DF='"\xf0\x9f\x93\x96"'
endif
ifeq ($(EMOJI),megaphone)
DB='"\xf0\x9f\x93\xa2"'
DF='"\xf0\x9f\x93\xa3"'
endif
ifeq ($(EMOJI),mailbox)
DB='"\xf0\x9f\x93\xaa"'
DF='"\xf0\x9f\x93\xab"'
endif
ifeq ($(EMOJI),lock)
DB='"\xf0\x9f\x94\x92"'
DF='"\xf0\x9f\x94\x93"'
endif
ifeq ($(EMOJI),fire)
DB='"\xf0\x9f\x94\xa5"'
DF='"\xf0\x9f\x92\xa5"'
endif
ifeq ($(EMOJI),bomb)
DB='"\xf0\x9f\x92\xa3"'
DF='"\xf0\x9f\x92\xa5"'
endif
ifeq ($(EMOJI),gun)
DB='"\xf0\x9f\x94\xab"'
DF='"\xf0\x9f\x92\xa5"'
endif
ifeq ($(EMOJI),knife)
DB='"\xf0\x9f\x94\xaa"'
DF='"\xf0\x9f\x92\xab"'
endif
ifeq ($(EMOJI),globe)
DB='"\xf0\x9f\x8c\x8d"'
DF='"\xf0\x9f\x8c\x8e"'
endif
# add some magic to call setlocale
CFLAGS += -include locale.h \
-Dmain='__attribute__((constructor))Z(){return!setlocale(LC_ALL,"");}int main'
endif
ifdef LANGUAGE
ifeq ($(LANGUAGE),spanish)
DG='"\xc2\xa1Pulse para batir!"'
endif
ifeq ($(LANGUAGE),french)
DG='"Appuyez \xc3\xa0 battre"'
endif
endif
# ANSI compiler
#
# Set CC to the name of your ANSI compiler.
#
# Some entries seem to need gcc. If you have gcc, set
# both CC and MAY_NEED_GCC to gcc.
#
# If you do not have gcc, set CC to the name of your ANSI compiler, and
# set MAY_NEED_GCC to either ${CC} (and hope for the best) or to just :
# to disable such programs.
#
CC= cc
#CC=clang
MAY_NEED_GCC= gcc
##############################
# Special flags for this entry
##############################
#
ENTRY= prog
CSRC= ${ENTRY}.c
OBJ= ${ENTRY}.o
DATA=
ALT_OBJ=
ALT_ENTRY=
TARGET= ${ENTRY}
#################
# build the entry
#################
#
all: ${TARGET} ${DATA}
@${TRUE}
${ENTRY}: ${CSRC}
${CC} ${CFLAGS} $< -o $@ ${LIBS}
# alternative executable
#
alt: ${ALT_ENTRY}
@${TRUE}
# data files
#
data: ${DATA}
@${TRUE}
###############
# utility rules
###############
#
everything: all alt
clean:
${RM} -f ${TARGET} ${OBJ} ${ALT_OBJ}
clobber: clean
${RM} -f ${TARGET} ${ALT_ENTRY}
nuke: clobber
@${TRUE}
dist_clean: nuke
@${TRUE}
install:
@echo "Surely we are joking Dr. May!"
@${TRUE}
# backwards compatibility
#
build: all
@${TRUE}
##################
# 133t hacker rulz
##################
#
love:
@echo 'not war?'
@${TRUE}
haste:
$(MAKE) waste
@${TRUE}
waste:
@echo 'haste'
@${TRUE}
make:
@echo 'Attend a maker faire'
@${TRUE}
easter_egg:
@echo you expected to sometimes mis-understand this $${RANDOM} magic
@echo chongo '<was here>' "/\\oo/\\"
@echo Readers shall not be disallowed from not failing to be unable to not partly misunderstand this partocular final echo.
# Understand the history of the Homebrew Computer Club
# as well as the West Coast Computer Faire and
# you might be confused different. :-)
#
supernova: nuke
@-if [ -r .code_anal ]; then \
${RM} -f .code_anal_v5; \
else \
echo "planet deniers, like the IAU, are amusing"; \
fi
@echo A $@ helps ${MAKE} the elements that help form planets
@${TRUE}
deep_magic:
@-if [ -r .code_anal ]; then \
ccode_analysis --deep_magic 2ed3582ec5c094a093fea2a6bcb9f19439892873c9cc45ed1ceaafe08b7d52e1b2c7cd524be3b0b2 --FNV1a_hash_512_bit "${ENTRY}"; \
else \
echo "You are holding it wrong!"; \
fi
@${TRUE}
magic: deep_magic
@-if [ -r .code_anal ]; then \
ccode_analysis --mode 216091 --level 216193 --FNV1a_hash_512_bit "${ENTRY}"; \
else \
echo "These aren't the primes you're looking for Pauline!"; \
fi
@${TRUE}
# The IOCCC resident astronomer states
#
charon: supernova
@echo $@ is a dwarf planet
@echo dwarf is a type of planet
@echo $@ is a planet
pluto: supernova
${MAKE} charon
@echo $@ is a dwarf planet
@echo dwarf is a type of planet
@echo $@ is a planet
@echo get used to having lots of planets because a $< can ${MAKE} a lot of them
+183
View File
@@ -0,0 +1,183 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="GENERATOR" content="mkd2html 2.1.5a DL=DISCOUNT">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<link rel="stylesheet"
type="text/css"
href="../hint.css">
<title>"For the Birds!" Award</title>
</head>
<body>
<h1>&ldquo;For the Birds!&rdquo; Award</h1>
<p>Chris Mills<br>
Twitter: @MisterXopher</p>
<h2>Judges' comments:</h2>
<h3>To use:</h3>
<pre><code>make
./prog
</code></pre>
<h3>Try:</h3>
<pre><code>Pressing the up arrow and the down arrow at the right time.
</code></pre>
<h3>Selected Judges Remarks:</h3>
<p>Did you find that mobile application game a bit frustrating?
Well you can adjust the makefile parameters to make life a
bit easier for you:</p>
<pre><code>make clobber all DW=199999 DW=22 DH=16 DA=50 DI=-150
</code></pre>
<p>From the makefile:</p>
<pre><code># Game parameters
#
DU=99999 # Time between steps in microseconds.
# Make it larger if the game is too fast for you.
DW=28 # Pipe-to-pipe spacing, in columns.
# Farther apart is easier.
DD=20 # Space between pipes.
# The difference between DD and DW is the width of a pipe.
# Narrow pipes are easier to fly though.
DH=8 # Height of gap in pipe.
# Make this larger to make the game easier.
DA=100 # Acceleration due to gravity (scaled by 256).
# Smaller values make you glide slower.
DI=-200 # Impulse velocity of a flap (scaled by 256).
# Make larger if you want an less intense tapping experience!
DB='"&lt;o^="' # Sprite for player when gliding.
# HINT: Try using various emoji.
# NOTE: The string MUST be enclosed inside double quotes.
DF='"&lt;ov="' # Sprite for player when flapping.
# HINT: Try using various emoji.
# NOTE: The string MUST be enclosed inside double quotes.
DG='"Tap to Flap!"' # Instruction text.
# Change to your native tongue.
# NOTE: The string MUST be enclosed inside double quotes.
</code></pre>
<p>Enjoy!</p>
<pre><code>TAP!! TAP!! TAP!!
FLAP! FLAP! FLAP!
</code></pre>
<h2>Author&rsquo;s comments:</h2>
<h1>The Program</h1>
<p>Better late than never to jump on the bandwagon of 2014&rsquo;s most successful
mobile game. The game is called Tappy Bird, and has all the sophisticated
gameplay of the original, except with an exciting twist! (you get to fly to
the right instead of to the left).</p>
<p>In addition, the game features exciting new customization options! Too hard?
Ran into that damn wall too many times? Now you can change physics! Change
any of a number of parameters (speed, gravity, etc.) of the game to suit your
gameplay!</p>
<p>You can even make the game more challenging &ndash; resize the terminal window to
make the world taller or shorter. You&rsquo;ll never be able to get through the
pipes when they are four times as tall!</p>
<h2>Instructions</h2>
<p>The instructions are printed at the start of the game: Tap to Flap!</p>
<p>Hit any key to make your bird fly. Navigate her between the gaps in the pipes.
Your score is shown in the upper left, along with your current high-score.</p>
<h2>Customization options</h2>
<p>To customize the gameplay, change any of the following options on the compile
command line:</p>
<ul>
<li><code>-DU</code>: Time between steps in microseconds. Make it larger if the game
is too fast for you.</li>
<li><code>-DW</code>: Pipe-to-pipe spacing, in columns. Farther apart is easier.</li>
<li><code>-DD</code>: Space between pipes. The difference between <code>D</code> and <code>W</code> is the
width of the pipe. Narrow pipes are easier to fly though.</li>
<li><code>-DH</code>: Height of gap in pipe. Make this larger to reduce the challenge.</li>
<li><code>-DA</code>: Acceleration due to gravity (scaled by 256). Smaller values
make you glide slower.</li>
<li><code>-DI</code>: Impulse velocity of a flap (scaled by 256). Make this smaller
if you want an intense tapping experience!</li>
<li><code>-DB</code>: Sprite for player when gliding.</li>
<li><code>-DF</code>: Sprite for player when flapping.</li>
<li><code>-DG</code>: Instruction text. Change to your native tongue.</li>
</ul>
<p>Feel free to try out physics or playfield options to make the game more
interesting. Try setting the player sprites to change the game completely &ndash;
maybe you can be a fish, or a pig &ndash; the options are limitless! Try using
emoji &ndash; you can be a flying beer mug!</p>
<p>Note that since the <code>curses</code> library on POSIX doesn&rsquo;t natively support wide
characters (needed for UTF-8 support, which is needed for emoji), you may need
to make some changes to the <code>Makefile</code> to get emoji to work on your system.
To help you get started, I&rsquo;ve included some example substitutions for emoji
sprites and instruction text; for example, type</p>
<pre><code>make EMOJI=beer LANGUAGE=spanish
</code></pre>
<p>or</p>
<pre><code>make EMOJI=globe
</code></pre>
<p>for some examples (the full list of options is in the <code>Makefile</code>). Don&rsquo;t
forget to <code>make clean</code> first. If the output doesn&rsquo;t look right, you may need
to link with the &ldquo;wide&rdquo; version of <code>ncurses</code>. On MacOSX 10.11, it should work
with the current <code>-lcurses</code>; on Linux, you probably need <code>-lncursesw</code>.
See the <code>Makefile</code> to make this change if you need to. Or buy a Mac.</p>
<p>You will also need a UTF-8 compatible terminal and an emoji font installed,
and you will need to have your <code>LANG</code> environment variable set to use UTF-8.
Again, if this is too complicated, maybe just go and get that Mac.</p>
<h2>Future additions</h2>
<p>Future versions of the game will include monitization via the freemium model
with micropayments for customization options, play-to-win and of course
live-streamed targeted video advertising.</p>
<hr />
<!--
(c) Copyright 1984-2016, [Leo Broukhis, Simon Cooper, Landon Curt Noll][judges] - All rights reserved
This work is licensed under a [Creative Commons Attribution-ShareAlike 3.0 Unported License][cc].
[judges]: http://www.ioccc.org/judges.html
[cc]: http://creativecommons.org/licenses/by-sa/3.0/
-->
<TABLE><TR>
<TD><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" /></a></TD>
<TD><P>&copy; Copyright 1984-2016,
<A HREF="/judges.html">Leo Broukhis, Simon Cooper, Landon Curt Noll</A>
- All rights reserved<BR>
This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.</P></TD>
<TD>&nbsp;<!--<a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31" width="88"></a>--></TD>
</TR></TABLE>
</body>
</html>
+156
View File
@@ -0,0 +1,156 @@
# "For the Birds!" Award
Chris Mills
Twitter: @MisterXopher
## Judges' comments:
### To use:
make
./prog
### Try:
Pressing the up arrow and the down arrow at the right time.
### Selected Judges Remarks:
Did you find that mobile application game a bit frustrating?
Well you can adjust the makefile parameters to make life a
bit easier for you:
make clobber all DW=199999 DW=22 DH=16 DA=50 DI=-150
From the makefile:
# Game parameters
#
DU=99999 # Time between steps in microseconds.
# Make it larger if the game is too fast for you.
DW=28 # Pipe-to-pipe spacing, in columns.
# Farther apart is easier.
DD=20 # Space between pipes.
# The difference between DD and DW is the width of a pipe.
# Narrow pipes are easier to fly though.
DH=8 # Height of gap in pipe.
# Make this larger to make the game easier.
DA=100 # Acceleration due to gravity (scaled by 256).
# Smaller values make you glide slower.
DI=-200 # Impulse velocity of a flap (scaled by 256).
# Make larger if you want an less intense tapping experience!
DB='"<o^="' # Sprite for player when gliding.
# HINT: Try using various emoji.
# NOTE: The string MUST be enclosed inside double quotes.
DF='"<ov="' # Sprite for player when flapping.
# HINT: Try using various emoji.
# NOTE: The string MUST be enclosed inside double quotes.
DG='"Tap to Flap!"' # Instruction text.
# Change to your native tongue.
# NOTE: The string MUST be enclosed inside double quotes.
Enjoy!
TAP!! TAP!! TAP!!
FLAP! FLAP! FLAP!
## Author's comments:
The Program
===========
Better late than never to jump on the bandwagon of 2014's most successful
mobile game. The game is called Tappy Bird, and has all the sophisticated
gameplay of the original, except with an exciting twist! (you get to fly to
the right instead of to the left).
In addition, the game features exciting new customization options! Too hard?
Ran into that damn wall too many times? Now you can change physics! Change
any of a number of parameters (speed, gravity, etc.) of the game to suit your
gameplay!
You can even make the game more challenging -- resize the terminal window to
make the world taller or shorter. You'll never be able to get through the
pipes when they are four times as tall!
Instructions
------------
The instructions are printed at the start of the game: Tap to Flap!
Hit any key to make your bird fly. Navigate her between the gaps in the pipes.
Your score is shown in the upper left, along with your current high-score.
Customization options
---------------------
To customize the gameplay, change any of the following options on the compile
command line:
* `-DU`: Time between steps in microseconds. Make it larger if the game
is too fast for you.
* `-DW`: Pipe-to-pipe spacing, in columns. Farther apart is easier.
* `-DD`: Space between pipes. The difference between `D` and `W` is the
width of the pipe. Narrow pipes are easier to fly though.
* `-DH`: Height of gap in pipe. Make this larger to reduce the challenge.
* `-DA`: Acceleration due to gravity (scaled by 256). Smaller values
make you glide slower.
* `-DI`: Impulse velocity of a flap (scaled by 256). Make this smaller
if you want an intense tapping experience!
* `-DB`: Sprite for player when gliding.
* `-DF`: Sprite for player when flapping.
* `-DG`: Instruction text. Change to your native tongue.
Feel free to try out physics or playfield options to make the game more
interesting. Try setting the player sprites to change the game completely --
maybe you can be a fish, or a pig -- the options are limitless! Try using
emoji -- you can be a flying beer mug!
Note that since the `curses` library on POSIX doesn't natively support wide
characters (needed for UTF-8 support, which is needed for emoji), you may need
to make some changes to the `Makefile` to get emoji to work on your system.
To help you get started, I've included some example substitutions for emoji
sprites and instruction text; for example, type
make EMOJI=beer LANGUAGE=spanish
or
make EMOJI=globe
for some examples (the full list of options is in the `Makefile`). Don't
forget to `make clean` first. If the output doesn't look right, you may need
to link with the "wide" version of `ncurses`. On MacOSX 10.11, it should work
with the current `-lcurses`; on Linux, you probably need `-lncursesw`.
See the `Makefile` to make this change if you need to. Or buy a Mac.
You will also need a UTF-8 compatible terminal and an emoji font installed,
and you will need to have your `LANG` environment variable set to use UTF-8.
Again, if this is too complicated, maybe just go and get that Mac.
Future additions
----------------
Future versions of the game will include monitization via the freemium model
with micropayments for customization options, play-to-win and of course
live-streamed targeted video advertising.
--------------------------------------------------------------------------------
<!--
(c) Copyright 1984-2016, [Leo Broukhis, Simon Cooper, Landon Curt Noll][judges] - All rights reserved
This work is licensed under a [Creative Commons Attribution-ShareAlike 3.0 Unported License][cc].
[judges]: http://www.ioccc.org/judges.html
[cc]: http://creativecommons.org/licenses/by-sa/3.0/
-->
+26
View File
@@ -0,0 +1,26 @@
#define P(a,b,c) a##b##c
#include/*++**++*/<curses.h>
int c,h, v,x,y,s, i,b; int
main () { initscr( ); P(cb,
rea, k)() ;///
P(n, oec, ho)(
)/* */ ;for (curs_set(0); s= x=COLS/2
; P( flu, shi, np)()){ timeout(y=c= v=0);///
P(c, lea, r)() ;for (P (
mva, d, dstr )(2, 3+x,
G) ; ; P( usl, eep, )(U)){//
P(m, vad, dstr )( y >>8,x,//
" "); for(i=LINES; /* */ i -->0
; mvinsch(i,0,0>(~c|i-h-H &h-i )?' '
:(i- h|h- i+H) <0?'|' :'=' ));
if(( i=( y +=v= getch( )>0?I:v+
A)>>8)>=LINES||mvinch(i*= 0<i, x)!=' '||' '
!=mvinch(i,3+x))break/*&% &*/; mvaddstr(y
>>8, x,0>v ?F:B ); i=--s
/-W; P(m, vpr, intw)(0,
COLS-9," %u/%u ",(0<i)* i,b=b<i?i:
b); refresh(); if(++ c==D){ c
-=W; h=rand()%(LINES-H-6
)+2; } } flash(); }}