Commit graph

586 commits

Author SHA1 Message Date
Eric S. Raymond
5341a3e2ee Add project logo. It'll have to do until we find an image of a miner's lamp. 2017-06-18 20:09:39 -04:00
Bob Little
04eca720d9 magic numbers, show usage, fixed linty warnings
Show usage when using bad parameter with ./advent
Converted magic numbers to enums for BUG().  Also bug now shows
stringify'ed version of bug enumeration (not just a number).
2017-06-18 19:33:21 -04:00
Jason S. Ninneman
65e2e472dd Fix bug that made YES() case-sensitive.
Also fix a related memory leak.
2017-06-18 14:14:13 -07:00
Jason S. Ninneman
550734fd3f Gut and rebuild YES() with cleaner approach that doesn't rely on packing.
The new support functions get_input() and echo_input() (and others not made yet) will eventually replace GETIN() and MAPLIN().
2017-06-18 13:39:59 -07:00
Eric S. Raymond
0dd961701f This should get test coverage to 93%. 2017-06-18 16:39:01 -04:00
Eric S. Raymond
2622a9835a Improve test coverage. 2017-06-18 16:27:12 -04:00
Eric S. Raymond
00514b0793 Improve test coverage. 2017-06-18 16:08:09 -04:00
Eric S. Raymond
83330fc0fd Improve test coverage 2017-06-18 15:50:52 -04:00
Eric S. Raymond
67bf87eda0 Repair plover teleport and add a test for it. 2017-06-18 15:05:17 -04:00
Eric S. Raymond
2b89225ecd Extent test coverage to plover room access. 2017-06-18 14:15:54 -04:00
Eric S. Raymond
409ffe4a86 Code simplification. 2017-06-18 14:02:24 -04:00
Eric S. Raymond
ba5c7dacb5 Remove unused code. 2017-06-18 13:20:04 -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
f66cb0cdae Improve test coverage. 2017-06-18 11:55:10 -04:00
Eric S. Raymond
957c78d0c2 Improve test coverage. 2017-06-18 11:36:03 -04:00
Eric S. Raymond
23cc7b45be Improve test coverage. 2017-06-18 11:14:44 -04:00
Eric S. Raymond
f862f9f1d5 Improve test coverage. 2017-06-18 10:55:09 -04:00
Eric S. Raymond
35a1aff8dc Improve test coverage. 2017-06-18 10:03:40 -04:00
Eric S. Raymond
937714f31d Magic-number limination. Improve test coverage. 2017-06-18 09:44:34 -04:00
Eric S. Raymond
d363a5c564 Trying again to repair tests. 2017-06-18 09:13:35 -04:00
Eric S. Raymond
8371a5d5a1 Repair tests. 2017-06-18 09:08:55 -04:00
Eric S. Raymond
6333544efb Simplify code, improve test coverage. 2017-06-18 08:57:08 -04:00
Eric S. Raymond
9e1143e780 Improve test coverage. 2017-06-18 07:41:40 -04:00
Eric S. Raymond
f704580d89 Improve test coverage. 2017-06-18 07:26:59 -04:00
Eric S. Raymond
c8dbb241e8 Rxtend test coverage, remove magic numbers. 2017-06-18 07:11:20 -04:00
Eric S. Raymond
ff7db8b0c8 Improve test coverage, simplify code. 2017-06-18 06:41:16 -04:00
Eric S. Raymond
b3057f038b Re-format to consistent indent style with "make indent". 2017-06-18 06:18:51 -04:00
NHOrus
a37e578f63 Compile switch to disable save and restore 2017-06-18 10:37:51 +03:00
Bob Little
d844c2a391 Added 'linty' target for make
"make linty" does lots of error checking while compiling.
Simplified the standard make's CFLAGS.
Cleaned up code to eliminate resulting warnings generated by "make linty".
2017-06-17 22:28:40 -04:00
Eric S. Raymond
d92da99106 Improve test coverage. 2017-06-17 20:43:23 -04:00
Eric S. Raymond
516980dc6e Test two defeat cases. 2017-06-17 20:02:41 -04:00
Eric S. Raymond
900822d38f Magic-number elimination. 2017-06-17 19:39:25 -04:00
Bob Little
a3485d2a41 Move a few prototypes and static'ed a few functions
Moved prototypes for initialise() and action() from main.c to advent.h
Made the following functions static, so they wouldn't require prototypes:
   sig_handler (main.c)
   spotted_by_pirate (main.c)
   light (actions.c)
2017-06-17 18:19:09 -04:00
Eric S. Raymond
14c83ede8e Tweak formatting. 2017-06-17 12:13:20 -04:00
Eric S. Raymond
d587a5951b Experiment with reindenting. 2017-06-17 12:04:26 -04:00
Eric S. Raymond
13f2e85535 Correct a message. 2017-06-17 11:09:55 -04:00
NHOrus
a0a35d8c7b Improved docs, fixed identation 2017-06-17 11:09:55 -04:00
NHOrus
32fdd08d9b Little cleanup of variable names 2017-06-17 17:48:12 +03:00
NHOrus
300d246179 Resume from file on startup 2017-06-17 09:20:42 +03:00
Eric S. Raymond
51a88bec4d Address GitLab issue #11: trivial patch for macports/osx requirements 2017-06-17 01:22:08 -04:00
Bob Little
a73620cca5 Added dependency to newdb.h to make 'make -j' work 2017-06-16 22:17:40 -04:00
Eric S. Raymond
880d17042c Typo fix. 2017-06-16 16:20:36 -04:00
Eric S. Raymond
1596e6d81e Code simplification. 2017-06-16 15:58:51 -04:00
Eric S. Raymond
851f90cdf7 Improve test coverage. 2017-06-16 15:40:46 -04:00
Eric S. Raymond
0d373a6b87 Improve test coverage. 2017-06-16 15:27:25 -04:00
Eric S. Raymond
59a558b762 Code simplification. 2017-06-16 15:08:21 -04:00
Peje Nilsson
a6feda5307 Split saveresume to reduce complexity
Fixed a bug where current time was printed as version of advent
when loading an old savegame.
2017-06-16 14:16:02 -04:00
Peje Nilsson
adbbd1df25 Merge branch 'master' into actions-arithmetic 2017-06-16 17:43:14 +02:00
Eric S. Raymond
d7bb3f61eb Test coverage of -s and -l options. 2017-06-16 09:54:10 -04:00