remove --rules
authorMischa POSLAWSKY <netris@shiar.org>
Thu, 8 Mar 2007 07:45:35 +0000 (08:45 +0100)
committerMischa POSLAWSKY <netris@shiar.org>
Thu, 8 Mar 2007 07:45:35 +0000 (08:45 +0100)
README should suffice. Nothing interesting said anyway.

Only thing useful would be to show rules in-game at some point, but
specific for current game settings.

client.c
util.c
util.h

index 013757261d907f97c0be72555406a4228baa3c50..ee27cf0635ff05ccd179024cb1ea3445e4f88760 100644 (file)
--- a/client.c
+++ b/client.c
@@ -44,7 +44,6 @@ static struct option options[] = {
        { "color",              2, 0, 'C' },
        { "slowterm",   2, 0, 'S' },
        { "keys",               1, 0, 'k' },
-       { "rules",              0, 0, 'R' },
        { "info",               0, 0, 'H' },
        { "help",               0, 0, 'h' },
        { 0,                    0, 0,  0 }
@@ -121,7 +120,6 @@ static void Usage(void)
                "\n"
                "  -h, --help\t\tPrint this usage information\n"
                "  -H, --info\t\tShow distribution and warranty information\n"
-               "  -R, --rules\t\tShow game rules\n"
                "\n"
                "  -S, --slowterm\tDisable inverse/bold/color for slow terminals\n"
                "  -a, --ascii\t\tUse ascii characters\n"
@@ -177,9 +175,6 @@ static void handle_arg(char tag, char *value)
                Header();
                DistInfo();
                exit(0);
-       case 'R':       //rules
-               Rules();
-               exit(0);
        case 'h':       //help
                Usage();
                exit(0);
@@ -794,7 +789,7 @@ int main(int argc, char **argv)
 //     else
        handle_conffile(CONFIG_FILE);
        while ((ch = getopt_long(
-               argc, argv, "hHRk:c:n:oSCap:i:l:t:", options, NULL
+               argc, argv, "hHk:c:n:oSCap:i:l:t:", options, NULL
        )) != -1)
                handle_arg(ch, optarg);
        if (optind < argc) {
diff --git a/util.c b/util.c
index e3018f99012d623c8e7f20f3ca7aef466a61d316..a9c9451b799f40607b796aab2e535aabd0a28f8e 100644 (file)
--- a/util.c
+++ b/util.c
@@ -81,31 +81,6 @@ void DistInfo(void)
        );
 }
 
-void Rules(void)
-{
-       Header();
-       fprintf(stderr,
-               "One player mode\n"
-               "---------------\n"
-               "Good old Tetris. Scoring is like on the GameBoy version (so try to\n"
-               "remove as many lines at once as you can). After removing ten lines\n"
-               "you go to the next level, which will be faster thus making the game\n"
-               "harder to play.\n"
-               "\n"
-               "Two player mode\n"
-               "---------------\n"
-               "It's just like normal T*tris except that when you clear more than\n"
-               "one row with a single piece, the other player receives penalty lines\n"
-               "For clearing 2, 3 or 4 rows, respectively 1, 2 or 4 junk rows will\n"
-               "be added to the bottom of your opponent's board respectively.\n"
-               "The junk rows have exactly one empty column, which will line up for\n"
-               "multiple rows.\n"
-               "\n"
-               "The longest surviving player wins the game.\n"
-               "\n"
-       );
-}
-
 ///////////// RANDOM /////////////
 
 /*
diff --git a/util.h b/util.h
index 4e2d712c37000cc3aa52d4b297062d36b119a0c9..a4ba626469eebb9b0f40519e0aa7fa3d842659b3 100644 (file)
--- a/util.h
+++ b/util.h
@@ -7,7 +7,6 @@
 extern void AtExit(void (*handler)(void));
 extern void Header(void);
 extern void DistInfo(void);
-extern void Rules(void);
 extern void SRandom(int seed);
 extern int Random(int min, int max1);
 extern int MyRead(int fd, void *data, int len);