Fix bugs, add sequence 2000

This commit is contained in:
Neale Pickett 2011-02-23 17:29:34 -07:00
parent 49aa2ccb62
commit a1dd6b8804
12 changed files with 43 additions and 52 deletions

View File

@ -1,12 +1,7 @@
Bugs Bugs
==== ====
* We need some programs so that we never have to edit .db files
directly. I truncated tokens.db with > instead of >>.
* Get erin to edit net-re
* Tanks documentation referencing wrong CSS * Tanks documentation referencing wrong CSS
* Sequence 300 continues to be a pain in the ass
* ctfd wget won't overwrite
* tanks/winners.awk needs +x * tanks/winners.awk needs +x
* tanks/winner.awk printing out address instead of path? How did * tanks/winner.awk printing out address instead of path? How did
this ever work? this ever work?
@ -26,11 +21,6 @@ Physical
Possibly fixed
--------------
* sequence 300; puzzler isn't taking the unicode character right
Won't fix Won't fix
--------- ---------
* tanks/designer.cgi: s/token/team hash/ * tanks/designer.cgi: s/token/team hash/

View File

@ -267,7 +267,7 @@ fgrepx(char const *needle, char const *filename)
break; break;
} else if (EOF == c) { /* End of file */ } else if (EOF == c) { /* End of file */
break; break;
} else if (('\0' == p) || (*p != c)) { } else if (('\0' == p) || (*p != (char)c)) {
p = needle; p = needle;
/* Discard the rest of the line */ /* Discard the rest of the line */
do { do {

View File

@ -1,3 +1,4 @@
#include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <ctype.h> #include <ctype.h>
#include "common.h" #include "common.h"
@ -60,6 +61,12 @@ main(int argc, char *argv[])
char needle[400]; char needle[400];
my_snprintf(needle, sizeof(needle), "%ld %s", points, answer); my_snprintf(needle, sizeof(needle), "%ld %s", points, answer);
{
FILE *f = fopen("/tmp/form", "w");
fprintf(f, "%s\n%s\n", answer, needle);
fclose(f);
}
if (! fgrepx(needle, if (! fgrepx(needle,
package_path("%s/answers.txt", category))) { package_path("%s/answers.txt", category))) {
cgi_page("Wrong answer", ""); cgi_page("Wrong answer", "");

View File

@ -1,23 +1,17 @@
RLYEH_PKGDIR = $(TARGET)/rlyeh RLYEH_PKGDIR = $(TARGET)/rlyeh
RLYEH_BUILDDIR = $(BUILD)/rlyeh RLYEH_BUILDDIR = $(BUILD)/rlyeh
RLYEH_TAR = $(CACHE)/rlyeh.tar.gz RLYEH_URL = "http://woozle.org/~neale/projects/rlyeh"
RLYEH_URL = "http://woozle.org/~neale/gitweb.cgi?p=rlyeh;a=snapshot;h=master;sf=tgz"
$(RLYEH_TAR): rlyeh-source: $(RLYEH_BUILDDIR)
@ mkdir -p $(@D) $(RLYEH_BUILDDIR):
wget -O $@ $(RLYEH_URL) git clone $(RLYEH_URL) $@
rlyeh-source: $(RLYEH_BUILDDIR)/rlyeh
$(RLYEH_BUILDDIR)/rlyeh: $(RLYEH_TAR)
mkdir -p $(RLYEH_BUILDDIR)
zcat $(RLYEH_TAR) | (cd $(RLYEH_BUILDDIR) && tar xf -)
rlyeh-build: rlyeh-source rlyeh-build: rlyeh-source
$(MAKE) -C $(RLYEH_BUILDDIR)/rlyeh $(MAKE) -C $(RLYEH_BUILDDIR)
rlyeh-install: rlyeh-build rlyeh-install: rlyeh-build
mkdir -p $(RLYEH_PKGDIR)/bin mkdir -p $(RLYEH_PKGDIR)/bin
cp $(RLYEH_BUILDDIR)/rlyeh/rlyeh $(RLYEH_PKGDIR)/bin cp $(RLYEH_BUILDDIR)/rlyeh $(RLYEH_PKGDIR)/bin
$(call COPYTREE, packages/rlyeh/service, $(RLYEH_PKGDIR)/service) $(call COPYTREE, packages/rlyeh/service, $(RLYEH_PKGDIR)/service)
$(call COPYTREE, packages/rlyeh/tokens, $(RLYEH_PKGDIR)/tokens) $(call COPYTREE, packages/rlyeh/tokens, $(RLYEH_PKGDIR)/tokens)

View File

@ -1,3 +1,6 @@
No more blanks! From now on you must use techniques from previous
puzzles to resequence the answer.
00000000 00 5e 03 6f 72 73 00 57 04 72 6f 63 61 00 56 05 |.^.ors.W.roca.V.| 00000000 00 5e 03 6f 72 73 00 57 04 72 6f 63 61 00 56 05 |.^.ors.W.roca.V.|
00000010 72 65 63 69 70 00 5d 05 63 61 76 61 74 00 5b 01 |recip.].cavat.[.| 00000010 72 65 63 69 70 00 5d 05 63 61 76 61 74 00 5b 01 |recip.].cavat.[.|
00000020 73 00 5c 05 69 74 20 65 78 00 59 05 69 6f 6e 20 |s.\.it ex.Y.ion | 00000020 73 00 5c 05 69 74 20 65 78 00 59 05 69 6f 6e 20 |s.\.it ex.Y.ion |
@ -5,8 +8,3 @@
00000040 00 53 05 74 6f 64 64 6c 00 55 01 20 |.S.toddl.U. | 00000040 00 53 05 74 6f 64 64 6c 00 55 01 20 |.S.toddl.U. |
0000004c 0000004c
________________________________________
^ ^
83 94

View File

@ -0,0 +1,7 @@
00000000 ff 41 42 43 44 45 46 47 48 ff 49 4a 4b 4c 4d 4e |.ABCDEFGH.IJKLMN|
00000010 4f 50 ff 51 52 53 54 55 56 57 58 ff 59 5a 0a 54 |OP.QRSTUVWX.YZ.T|
00000020 68 65 20 72 6f 61 69 6e 20 11 00 53 70 10 01 7f |he roain ..Sp...|
00000030 73 74 61 79 73 20 6d 10 00 6b 6c 79 13 01 74 0c |stays m..kly..t.|
00000040 00 70 6c 10 00 df 2c 20 61 6e 64 2c 02 61 6e ff |.pl..., and,.an.|
00000050 73 77 65 72 20 69 73 20 cd 22 31 00 6e 65 21 03 |swer is ."1.ne!.|
00000060 1d 01 22 2e 01 0a |.."...|

View File

@ -0,0 +1 @@
planes mainstay

View File

@ -1,2 +1,2 @@
&#9508;

View File

@ -1,42 +1,36 @@
TANKS_PKGDIR = $(TARGET)/tanks TANKS_PKGDIR = $(TARGET)/tanks
TANKS_BUILDDIR = $(BUILD)/tanks TANKS_BUILDDIR = $(BUILD)/tanks
TANKS_TAR = $(CACHE)/tanks.tar.gz TANKS_URL = "http://woozle.org/~neale/projects/ctanks"
TANKS_URL = "http://woozle.org/~neale/gitweb.cgi?p=ctanks;a=snapshot;h=master;sf=tgz"
$(TANKS_TAR): tanks-source: $(TANKS_BUILDDIR)
@ mkdir -p $(@D) $(TANKS_BUILDDIR):
wget -O $@ $(TANKS_URL) git clone $(TANKS_URL) $@
tanks-source: $(TANKS_BUILDDIR)/ctanks
$(TANKS_BUILDDIR)/ctanks: $(TANKS_TAR)
mkdir -p $(TANKS_BUILDDIR)
zcat $(TANKS_TAR) | (cd $(TANKS_BUILDDIR) && tar xf -)
tanks-build: tanks-source tanks-build: tanks-source
$(MAKE) -C $(TANKS_BUILDDIR)/ctanks $(MAKE) -C $(TANKS_BUILDDIR)
# "html" instead of "www" to prevent automatic links # "html" instead of "www" to prevent automatic links
tanks-install: tanks-build tanks-install: tanks-build
mkdir -p $(TANKS_PKGDIR)/bin mkdir -p $(TANKS_PKGDIR)/bin
cp $(TANKS_BUILDDIR)/ctanks/forftanks $(TANKS_PKGDIR)/bin cp $(TANKS_BUILDDIR)/forftanks $(TANKS_PKGDIR)/bin
cp $(TANKS_BUILDDIR)/ctanks/designer.cgi $(TANKS_PKGDIR)/bin cp $(TANKS_BUILDDIR)/designer.cgi $(TANKS_PKGDIR)/bin
cp $(TANKS_BUILDDIR)/ctanks/rank.awk $(TANKS_PKGDIR)/bin cp $(TANKS_BUILDDIR)/rank.awk $(TANKS_PKGDIR)/bin
cp $(TANKS_BUILDDIR)/ctanks/winners.awk $(TANKS_PKGDIR)/bin cp $(TANKS_BUILDDIR)/winner.awk $(TANKS_PKGDIR)/bin
$(call COPYTREE, packages/tanks/html, $(TANKS_PKGDIR)/html) $(call COPYTREE, packages/tanks/html, $(TANKS_PKGDIR)/html)
cp packages/mcp/www/ctf.css $(TANKS_PKGDIR)/html/style.css cp packages/mcp/www/ctf.css $(TANKS_PKGDIR)/html/style.css
cp packages/mcp/www/grunge.png $(TANKS_PKGDIR)/html cp packages/mcp/www/grunge.png $(TANKS_PKGDIR)/html
cp $(TANKS_BUILDDIR)/ctanks/nav.html.inc $(TANKS_PKGDIR)/html cp $(TANKS_BUILDDIR)/nav.html.inc $(TANKS_PKGDIR)/html
cp $(TANKS_BUILDDIR)/ctanks/tanks.js $(TANKS_PKGDIR)/html cp $(TANKS_BUILDDIR)/tanks.js $(TANKS_PKGDIR)/html
cp $(TANKS_BUILDDIR)/ctanks/forf.html $(TANKS_PKGDIR)/html cp $(TANKS_BUILDDIR)/forf.html $(TANKS_PKGDIR)/html
cp $(TANKS_BUILDDIR)/ctanks/intro.html $(TANKS_PKGDIR)/html cp $(TANKS_BUILDDIR)/intro.html $(TANKS_PKGDIR)/html
cp $(TANKS_BUILDDIR)/ctanks/figures.js $(TANKS_PKGDIR)/html cp $(TANKS_BUILDDIR)/figures.js $(TANKS_PKGDIR)/html
cp $(TANKS_BUILDDIR)/ctanks/procs.html $(TANKS_PKGDIR)/html cp $(TANKS_BUILDDIR)/procs.html $(TANKS_PKGDIR)/html
cp $(TANKS_BUILDDIR)/ctanks/designer.js $(TANKS_PKGDIR)/html cp $(TANKS_BUILDDIR)/designer.js $(TANKS_PKGDIR)/html
$(call COPYTREE, packages/tanks/service, $(TANKS_PKGDIR)/service) $(call COPYTREE, packages/tanks/service, $(TANKS_PKGDIR)/service)
$(call COPYTREE, $(TANKS_BUILDDIR)/ctanks/examples, $(TANKS_PKGDIR)/examples) $(call COPYTREE, $(TANKS_BUILDDIR)/examples, $(TANKS_PKGDIR)/examples)
tanks-clean: tanks-clean:
rm -rf $(TANKS_BUILDDIR) rm -rf $(TANKS_BUILDDIR)