Commit graph

141 commits

Author SHA1 Message Date
Eric S. Raymond
6c175164cf Documentation polishing. 2017-06-13 20:43:43 +03:00
Eric S. Raymond
5f89bbc5ac Test for more unusual cases. 2017-06-13 20:43:43 +03:00
Eric S. Raymond
29bdeeb3ad Add some tests that increase test coverage to add cases.
Proof of concept. More could be added in illformed.log.
2017-06-13 20:43:43 +03:00
Jason S. Ninneman
a065497445 Do code coverage analysis, and publish the results to GitLab Pages. 2017-06-13 20:43:43 +03:00
Eric S. Raymond
a07e59b0f1 Simplify bitmask test/set from FORTRANish to actual C. 2017-06-13 20:43:43 +03:00
Eric S. Raymond
e738596c74 Macro elimination - easy cases first. No logic changes. 2017-06-13 20:43:43 +03:00
Eric S. Raymond
1fffdfb680 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-13 20:43:43 +03:00
Jason S. Ninneman
f0b68b988c Fix typo in COPYING. 2017-06-13 20:43:43 +03:00
Eric S. Raymond
e822100f63 Walktrough is accomplished. 2017-06-13 20:43:43 +03:00
Peje Nilsson
6b4a74ccbe Untangle gotos
Some LXXXX refactored as functions with more meaningful names
Remove unused globals
2017-06-13 20:43:43 +03:00
Michael Jarvis
92f39c50c8 Add explicit rule for compile to use CCFLAGS instead of CFLAGS (take two) 2017-06-13 20:43:43 +03:00
Michael Jarvis
b0d8eff19d Revert "Add explicit rule for compile to use CCFLAGS instead of CFLAGS"
This reverts commit c29e30d25c.
2017-06-13 20:43:43 +03:00
Michael Jarvis
c5071a1bb5 added braces around initialization of subobjects for clarity 2017-06-13 20:43:43 +03:00
Michael Jarvis
f8152ac470 Cast size_t to long to silence warning 2017-06-13 20:43:43 +03:00
Michael Jarvis
fa3e56f539 Add explicit rule for compile to use CCFLAGS instead of CFLAGS 2017-06-13 20:43:43 +03:00
Eric S. Raymond
60131eb12a Hand merge of MR !31: Update the CI infrastructure to be faster 2017-06-13 20:43:43 +03:00
Eric S. Raymond
ed55526b66 Added 428-point walkthrough to regression tests. 2017-06-13 20:43:43 +03:00
Michael Jarvis
505d7233ec use char, not signed char 2017-06-13 20:43:43 +03:00
Eric S. Raymond
64f14dc04d Add a walkthrough that foes nearly to endgame. 2017-06-13 20:43:43 +03:00
Jason S. Ninneman
cf6e60020b Test to ensure that the turn count penalties occur. 2017-06-13 20:43:43 +03:00
Eric S. Raymond
2f30d19aa2 Simplify inclusion computation so it's BSD-friendly. 2017-06-13 20:43:43 +03:00
Eric S. Raymond
cedfbbc7b8 Metadata update. 2017-06-13 20:43:43 +03:00
Jason S. Ninneman
99062f8a77 Fix dependencies so parallel make works (issue #4). 2017-06-13 20:43:43 +03:00
Eric S. Raymond
5474ff5484 Add a missing dependency. 2017-06-13 20:43:42 +03:00
Eric S. Raymond
3149ea7dcd Add another test. 2017-06-13 20:43:42 +03:00
Jason S. Ninneman
b15ada0065 Remove erroneous comment about PRNG usage. 2017-06-13 20:43:42 +03:00
Eric S. Raymond
725cb0aee7 Fix things so seed doesn't cost clock time. 2017-06-13 20:43:42 +03:00
Eric S. Raymond
94373bff14 Remove inventory commands from the pirare log - more hope of completing it. 2017-06-13 20:43:42 +03:00
Eric S. Raymond
90ee642f1d Replace 161-point partial walktgrough with 219-point (same base). 2017-06-13 20:43:42 +03:00
Jason S. Ninneman
b77e14a6ae Launder seed generation through rand() to ensure seed diversity.
This doesn't affect reproducibility because a) the seed value written to logs is the output of this process, and b) the argument to the seed command *doesn't* get laundered.
2017-06-13 20:43:42 +03:00
Eric S. Raymond
01004f1f62 Don's account of differences from the original. 2017-06-13 20:43:42 +03:00
Eric S. Raymond
1bc5f9cfe8 History clarification. 2017-06-13 20:43:42 +03:00
David James Sherman
a5a35b8fcf Advent doesn't need automake 2017-06-13 20:43:42 +03:00
David James Sherman
51a34d9e6d Add .gitlab-ci.yml 2017-06-13 20:43:42 +03:00
Jason S. Ninneman
8035840aee Update reservoir test to reflect the magic word fix. 2017-06-13 20:43:42 +03:00
Jason S. Ninneman
39b2c286d9 Fix a bug in RNDVOC() that prevented the reservoir magic word for working.
To do this, I first had to refactor the code into proper C, just so I could understand it. Then I found another layer of encryption around the value itself. Finally, I discovered that the line to actually set the new magic word was placed such that it was using a global index instead of the local one.
2017-06-13 20:43:42 +03:00
Jason S. Ninneman
863edfb60a Make RNDVOC() into better C. 2017-06-13 20:43:42 +03:00
Jason S. Ninneman
0c26368412 Remove an obfuscation scheme for the reservoir magic word. 2017-06-13 20:43:42 +03:00
Jason S. Ninneman
dd721700f1 gitignore the database compilation products. 2017-06-13 20:43:42 +03:00
Jason S. Ninneman
33878607df Don't build with two -std options. 2017-06-13 20:43:42 +03:00
Jason S. Ninneman
e4d145d727 Really mean it about strict C99 compliance. 2017-06-13 20:43:42 +03:00
Eric S. Raymond
c726a2d8f2 Add a qualification. 2017-06-13 20:43:42 +03:00
Eric S. Raymond
7949553703 The ADVENTURE variable is no more. 2017-06-13 20:43:42 +03:00
Eric S. Raymond
1e3e6938b3 Minor build tweaks. 2017-06-13 20:43:42 +03:00
Warren Melnick
a7ba84a680 Move the if for GCC 4 to an elseif so it does not interfere with MacOS 2017-06-13 20:43:42 +03:00
Warren Melnick
99d61fa4aa Test for >= gcc 4, and change to g99 -std=gnu99 for the compiler if it is found. 2017-06-13 20:43:42 +03:00
Eric S. Raymond
2c97698e2e Typo fixes. 2017-06-13 20:43:42 +03:00
Eric S. Raymond
2d1532ffec Update history.txt. 2017-06-13 20:43:42 +03:00
Eric S. Raymond
2618af8319 Don't assume gcc. 2017-06-13 20:43:42 +03:00
Eric S. Raymond
b4f9c2a86c MacOS port fix. 2017-06-13 20:43:42 +03:00