Eric S. Raymond
ddb0df85b3
YAMLify section 11 (hints).
2017-06-21 11:22:18 -04:00
Eric S. Raymond
f6373dd32e
Section 10 (class thresholds) is now parsed entirely from YAML.
2017-06-21 06:17:20 -04:00
Jason S. Ninneman
06e8d5a83e
Abolish MAXDIE in favor of maximum_deaths.
2017-06-18 20:02:03 -07:00
Eric S. Raymond
fa9b6d317f
No longer restricted to 6-character FORTRAN identifiers.
2017-06-18 21:17:57 -04:00
Jason S. Ninneman
672ef17d4c
Rename newspeak() to speak().
2017-06-18 10:06:14 -07:00
Eric S. Raymond
704b86afbb
Refactor scoring so score() does not conditionally exit.
2017-06-18 12:51:05 -04:00
Eric S. Raymond
b3057f038b
Re-format to consistent indent style with "make indent".
2017-06-18 06:18:51 -04:00
Eric S. Raymond
900822d38f
Magic-number elimination.
2017-06-17 19:39:25 -04:00
Eric S. Raymond
a57d93ce35
Magic-number elimination.
2017-06-16 07:00:57 -04:00
Eric S. Raymond
eaee02aa09
Squasgh -Wextra warnings.
2017-06-15 19:39:43 -04:00
Eric S. Raymond
0d5f9064c7
Comment fix.
2017-06-15 12:20:49 -04:00
Eric S. Raymond
14486d67d4
Magic-numnber elimination.
2017-06-15 12:19:06 -04:00
NHOrus
f1f7cfd4e9
Localizing variables
2017-06-15 16:16:21 +03:00
Eric S. Raymond
a141f021d5
Meaningful shortnames for RSPEAK messages.
2017-06-15 07:35:03 -04:00
Eric S. Raymond
fef9657e3e
Move from random message numbers to ARB_* symbols generate from YAML.
2017-06-14 17:36:30 -04:00
Jason S. Ninneman
15ff262d17
More retrofitting.
2017-06-11 15:42:25 -07:00
Eric S. Raymond
e6f183ba7f
Use C idioms for increment/decrement.
2017-06-10 12:38:40 -04:00
Eric S. Raymond
fa2fb48436
Localize K in score.c.
2017-06-07 15:20:19 -04:00
Eric S. Raymond
1b59175d8d
Scoring code is fully translated to C.
2017-06-07 15:00:16 -04:00
Eric S. Raymond
db4b972fc7
Reformat score.c like normal C, since it now almost is.
...
Still two gotos to get rid of.
2017-06-07 14:50:45 -04:00
Eric S. Raymond
7555eb7de3
Global-variable elimination.
2017-06-07 14:45:30 -04:00
Eric S. Raymond
73e8d7fd87
score.c begins to resemble actual C.
2017-06-07 14:39:51 -04:00
Eric S. Raymond
14fee6b979
Eliminate globals.
2017-06-07 14:03:33 -04:00
Eric S. Raymond
2d95c3f4f5
Finish moving state arrays into game structure block.
2017-06-07 07:10:07 -04:00
Eric S. Raymond
0b02763bf0
More collecting of globals.
2017-06-07 06:38:40 -04:00
Eric S. Raymond
dda636bbc1
Pull more globals into the game state block.
2017-06-07 05:10:20 -04:00
Eric S. Raymond
91ad0185ff
Move more globals into the game state block.
2017-06-07 01:12:49 -04:00
Eric S. Raymond
62ee15c892
Pack more globals into the game block structure.
2017-06-07 00:41:51 -04:00
Eric S. Raymond
d402e09411
Header consolidation - main.h, misc.h, and share.h merge to advent.h.
...
For a project this small size with a small type ontology, it's better
C style to have one header where all the assumptions about types and
structures are immediately visible.
This is a first step towards turning all that global state into a handful
of structures - probably just two, one saveable as a binary game state.
2017-06-02 15:06:33 -04:00
Eric S. Raymond
5ae76995d2
Simplify build: nested makefiles considered harmful.
2017-05-29 01:33:59 -04:00
Jason S. Ninneman
f0528b0ded
Move database compilation out into its own tool (for now).
2017-05-28 21:46:54 -07:00
Jason S. Ninneman
df46df6979
Factor out handling of variables populated from the database.
...
This reorganization is a first step toward handling database compilation separately.
2017-05-28 15:42:05 -07:00
Eric S. Raymond
484ca4e9fd
Revert structurization changes, they broke database compilation...
...
...bug showing only if adventure.data was absent. We'll need to sneak up
on this more carefully.
2017-05-24 00:17:19 -04:00
Eric S. Raymond
f72141fbe3
More structurization.
2017-05-23 20:59:21 -04:00
Eric S. Raymond
c3add5c206
More global-to-structure moves.
2017-05-23 20:22:35 -04:00
Eric S. Raymond
fa1f859162
Move more globals into the state structure.
2017-05-23 19:40:34 -04:00
Eric S. Raymond
42189d79d7
Begin gathering saveable game state into a structure. Not yet complete.
...
No logic changes. A bunch of globals turn into fields (with the same names
except for lowercasing) in struct game_t.
Eventually this will allow drastic simplification of the save/load logic.
2017-05-23 18:47:04 -04:00
Eric S. Raymond
f89f63c6d1
Fix capitalization glitches.
2017-05-23 09:18:28 -04:00
Eric S. Raymond
040f19adde
Fix strange inside-out organization of the input routines.
...
Seems to have nbben a result of FORTRAN not having anything like a
stream object that can be passed around.
A step towards logging and log replay.
2017-05-22 21:26:14 -04:00
Eric S. Raymond
18767d52dd
Fix up case on all comments to make them more readable. No code changes.
...
The all-capsing was a FORTRAN remnant.Also, we change a few FORTRANisms
so they are less confusing in this C context; ".TRUE." and ".FALSE." become
"true" and "false", "MOD" is mapped to % in places tha t are like C expressions
and (usually) "modulo" in places that aren't.
2017-05-21 13:12:24 -04:00
Eric S. Raymond
17ad4891ee
More boolification.
...
Constants and formals have been converted, but not globals yet.
2017-05-18 17:28:18 -04:00
Eric S. Raymond
b38c11abef
Use prototypes and bools.
2017-05-18 09:06:32 -04:00
Eric S. Raymond
c9e9b64575
Partially ANSIfy C, fix compiler warnings.
2017-05-18 08:55:38 -04:00
Eric S. Raymond
24d7aeaf8a
Don Wood's 430-point Adventure 2.5 from 1995, from rec.games.int-fiction.
2017-02-16 11:59:50 -05:00