diff --git a/src/utictactoe.c b/src/utictactoe.c index 9591c07..aa03731 100644 --- a/src/utictactoe.c +++ b/src/utictactoe.c @@ -4,6 +4,7 @@ #include #include #include +#include "utictactoe.h" void help(){ printf("usage: utictactoe ([-i LEVEL|-x N|-o N|-v|-V|-h] | -c FILE)\n"); @@ -48,25 +49,28 @@ int main(int argc, char* argv[]) { inception_level = 2; } break; - case 'x': /* 'a' option */ - printf ("contest activated\n"); + case 'x': + printf ("cross ai\n"); cross_ai = true; break; - case 'o': /* 'a' option */ - printf ("contest activated\n"); + case 'o': + printf ("round ai\n"); round_ai = true; break; - case 'c': /* 'a' option */ + case 'c': printf ("contest activated\n"); contest = true; break; - + case 'V': + printf("utictactoe %d.%d.%d\n", VERSION, SUBVERSION, REVISION); + printf("This software implements a full ultimate tictactoe game.\n"); + exit(EXIT_SUCCESS); case 'h': help(); exit(EXIT_SUCCESS); - + default: exit (EXIT_FAILURE); } diff --git a/src/utictactoe.h b/src/utictactoe.h index e69de29..b9d2166 100644 --- a/src/utictactoe.h +++ b/src/utictactoe.h @@ -0,0 +1,6 @@ +#ifndef UTICTACTOE_H +#define UTICTACTOE_H +#define VERSION 1 +#define SUBVERSION 0 +#define REVISION 0 +#endif /* UTICTACTOE_H */