/* CATWALK - Test your logic
Copyright (C) 2021 Valentin Moguerou
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULIAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see */
#include
#include
#include
#include
#include
#include "interact.h"
#include "simplegen.h"
#define PROGRAM_VERSION "Alpha 0.1"
void help(char *program_name)
{
printf("\
Usage : %s [parameters]\n",
program_name);
puts("\n\
-h, --help Print this help.\n\
-v, --version Print version info.\n\
-i, --interactive Launch catwalk-cli in interactive mode (default\n\
-s, --simple Create a grid, without permitting to play.\n\
-w, --width Create a grid with the given width.\n\
--interactive, --simple, --help and --version are mutually exclusive: the last argument is kept.\n\n\
This program was made with love by Valentin Moguerou .");
}
void version()
{
puts("Catwalk CLI version alpha 0.1\n\
Copyright (C) 2021 Valentin Moguerou \n\
License GPLv3+ : GNU GPL version 3 or later\n\
\n\
This program comes with ABSOLUTELY NO WARRANTY.\n\
This is free software, and you are welcome to redistribute it under certain conditions.");
}
int main(int argc, char **argv)
{
int width = 4;
char mode = 'i';
for (int i=1; i