Jason S. Ninneman
4babd6d058
Rescope and retype a variable.
2017-06-03 11:30:56 -07:00
Jason S. Ninneman
ab46b5261b
Make GETTXT() a bit closer to actual C.
2017-06-03 11:30:56 -07:00
Eric S. Raymond
681ecd9a4f
Use "adoc" extension for asciidoc, it's the GitLab convention.
2017-06-03 14:29:44 -04:00
Eric S. Raymond
3f59708933
Attempt to use GitLab's asciidic grinder for README.
2017-06-03 14:20:20 -04:00
Eric S. Raymond
3e82eeda27
Documentation polishing.
2017-06-03 13:04:46 -04:00
Eric S. Raymond
6f17b31b85
Test for more unusual cases.
2017-06-03 11:27:24 -04:00
Eric S. Raymond
4874fce5c7
Add some tests that increase test coverage to add cases.
...
Proof of concept. More could be added in illformed.log.
2017-06-03 06:28:00 -04:00
Jason S. Ninneman
900f8d9df5
Do code coverage analysis, and publish the results to GitLab Pages.
2017-06-02 15:52:52 -07:00
Eric S. Raymond
aef609291d
Simplify bitmask test/set from FORTRANish to actual C.
2017-06-02 16:40:29 -04:00
Eric S. Raymond
63f53c026d
Macro elimination - easy cases first. No logic changes.
2017-06-02 16:20:40 -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
Jason S. Ninneman
4209b82c5a
Fix typo in COPYING.
2017-06-02 18:13:56 +00:00
Eric S. Raymond
e0ae1b84b8
Walktrough is accomplished.
2017-06-02 14:06:43 -04:00
Peje Nilsson
5632f5eba4
Untangle gotos
...
Some LXXXX refactored as functions with more meaningful names
Remove unused globals
2017-06-02 08:45:50 -04:00
Michael Jarvis
467a255653
Add explicit rule for compile to use CCFLAGS instead of CFLAGS (take two)
2017-06-02 08:44:40 -04:00
Michael Jarvis
c14c5952a7
Revert "Add explicit rule for compile to use CCFLAGS instead of CFLAGS"
...
This reverts commit c29e30d25c
.
2017-06-02 08:44:40 -04:00
Michael Jarvis
44c444d638
added braces around initialization of subobjects for clarity
2017-06-02 08:44:40 -04:00
Michael Jarvis
092f478790
Cast size_t to long to silence warning
2017-06-02 08:44:40 -04:00
Michael Jarvis
2620bf922f
Add explicit rule for compile to use CCFLAGS instead of CFLAGS
2017-06-02 08:44:40 -04:00
Eric S. Raymond
f373d87ba7
Hand merge of MR !31 : Update the CI infrastructure to be faster
2017-06-02 06:42:35 -04:00
Eric S. Raymond
67d8c99e53
Added 428-point walkthrough to regression tests.
2017-06-02 06:38:59 -04:00
Michael Jarvis
40ccd3d80d
use char, not signed char
2017-06-01 17:45:29 -05:00
Eric S. Raymond
dbe02a31a2
Add a walkthrough that foes nearly to endgame.
2017-06-01 14:36:16 -04:00
Jason S. Ninneman
2483a23690
Test to ensure that the turn count penalties occur.
2017-05-31 13:36:36 -07:00
Eric S. Raymond
2e5c6cf810
Simplify inclusion computation so it's BSD-friendly.
2017-05-31 14:53:01 -04:00
Eric S. Raymond
b2c0107fed
Metadata update.
2017-05-31 14:34:32 -04:00
Jason S. Ninneman
80bf70f0a6
Fix dependencies so parallel make works (issue #4 ).
2017-05-31 10:52:46 -07:00
Eric S. Raymond
aacd3a5f8d
Add a missing dependency.
2017-05-31 13:08:23 -04:00
Eric S. Raymond
77d2a1e5dd
Add another test.
2017-05-31 06:37:56 -04:00
Jason S. Ninneman
c9ba5831c9
Remove erroneous comment about PRNG usage.
2017-05-30 17:19:01 -07:00
Eric S. Raymond
6a6670e3ca
Fix things so seed doesn't cost clock time.
2017-05-30 20:08:55 -04:00
Eric S. Raymond
6b6cfa37f1
Remove inventory commands from the pirare log - more hope of completing it.
2017-05-30 19:59:38 -04:00
Eric S. Raymond
edc11a1f04
Replace 161-point partial walktgrough with 219-point (same base).
2017-05-30 18:27:25 -04:00
Jason S. Ninneman
71fcc814f8
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-05-30 14:58:55 -07:00
Eric S. Raymond
dfe04a58b6
Don's account of differences from the original.
2017-05-30 17:55:15 -04:00
Eric S. Raymond
2858334845
History clarification.
2017-05-30 17:55:15 -04:00
David James Sherman
5c8276e2cb
Advent doesn't need automake
2017-05-30 22:24:21 +02:00
David James Sherman
6b8c994876
Add .gitlab-ci.yml
2017-05-30 16:36:10 +00:00
Jason S. Ninneman
b3d6df3a8d
Update reservoir test to reflect the magic word fix.
2017-05-29 14:41:15 -07:00
Jason S. Ninneman
650575394f
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-05-29 14:22:52 -07:00
Jason S. Ninneman
18eac9f55d
Make RNDVOC() into better C.
2017-05-29 13:59:06 -07:00
Jason S. Ninneman
fda1abed97
Remove an obfuscation scheme for the reservoir magic word.
2017-05-29 13:34:34 -07:00
Jason S. Ninneman
1c74e6b22d
gitignore the database compilation products.
2017-05-29 10:58:17 -07:00
Jason S. Ninneman
f5302b3b46
Don't build with two -std options.
2017-05-29 10:57:47 -07:00
Jason S. Ninneman
519d8f07e6
Really mean it about strict C99 compliance.
2017-05-29 09:30:37 -07:00
Eric S. Raymond
4beb21e08f
Add a qualification.
2017-05-29 12:01:28 -04:00
Eric S. Raymond
878aa0e455
The ADVENTURE variable is no more.
2017-05-29 12:00:44 -04:00
Eric S. Raymond
270ecf8f02
Minor build tweaks.
2017-05-29 11:39:19 -04:00
Warren Melnick
7555c5354a
Move the if for GCC 4 to an elseif so it does not interfere with MacOS
2017-05-29 10:52:51 -04:00
Warren Melnick
ae3c34084f
Test for >= gcc 4, and change to g99 -std=gnu99 for the compiler if it is found.
2017-05-29 10:42:37 -04:00