ack/examples
George Koehler 4a3b7be795 Use ack -mcpm -fp for mandelbrot.c, startrek.c
Add a variable %{ackldflags} so I can pass `-fp`.  This change seems
to cause the build to relink every ackprogram, because the link now
needs to use %{ackldflags} even if the flags are empty.

mandelbrot_c_cpm runs in YAZE-AG; startrek_c_cpm doesn't run because
it doesn't fit in the 16-bit address space.
2018-04-28 13:18:27 -04:00
..
build.lua Use ack -mcpm -fp for mandelbrot.c, startrek.c 2018-04-28 13:18:27 -04:00
hilo.b Add a B version of the hilo program. 2016-12-29 17:20:51 +00:00
hilo.bas Change the extension used by Basic files for .b to .bas, to avoid conflicts 2016-11-27 20:38:33 +01:00
hilo.c Adapted to tell the user what language they were written in (because they're too similar!). Modified the Pascal implementation to work with our new syscall model. 2007-04-21 23:19:32 +00:00
hilo.mod Flush output stream before waiting for user input. 2010-08-05 22:23:34 +00:00
hilo.ocm Adapted to tell the user what language they were written in (because they're too similar!). Modified the Pascal implementation to work with our new syscall model. 2007-04-21 23:19:32 +00:00
hilo.p Fix hilo.p for big-endian platforms. 2016-09-18 00:07:30 -04:00
mandelbrot.c Added the Mandelbrot generator. 2007-04-28 22:34:05 +00:00
paranoia.c Ansify Paranoia, because I was getting annoyed by all the compiler warnings on 2016-11-25 20:01:43 +01:00
README Added the Mandelbrot generator. 2007-04-28 22:34:05 +00:00
startrek.c Edit startrek.c so I can compile it with gcc and OpenBSD libc. 2016-11-06 20:21:48 -05:00
startrek.doc Added the 'Star Trek' example game. 2007-04-21 23:20:11 +00:00

# $Source$
# $State$
# $Revision$

A few notes on the examples
---------------------------

This directory contains a handful of working example programs that can be
built with the ACK. They're intended as a convenient source of test code
and as a starting point when writing your own programs.

They consist of:

hilo.c             ANSI C version of the Hi/Lo game
hilo.b             Basic version of the Hi/Lo game
hilo.mod           Modula-2 version of the Hi/Lo game
hilo.ocm           Occam 1 version of the Hi/Lo game
hilo.p             Pascal version of the Hi/Lo game

mandelbrot.c       A simple Mandelbrot generator, using floating-point maths
paranoia.c         An ancient public domain K&R C adventure game
startrek.c         An even more ancient public domain ANSI C game
                     (uses the FPU for distance calculation)
startrek.doc       Manual for above (plus in current directory when running)

Enjoy.

(startrek.c was written by David Ahl and converted to C by Chris Nystrom. See
http://www.cactus.org/%7Enystrom/startrek.html for more info.)

David Given
dg@cowlark.com
2007-02-25