Compare commits

...

9 Commits

Author SHA1 Message Date
2d0a8e13a6 Compléter le README.md
- ajout des informations de compatibilité de la bibliothèque
- suppression des commandes à exécuter en tant que root (jugées inutiles)
2021-11-04 20:35:03 +01:00
67547b7226 Added random start
before: no random_start, always start at (0, 0)
after: start randomly
2021-11-03 23:54:54 +01:00
fabc2bcf86 Add version information 2021-11-03 23:13:30 +01:00
2e287bb2d8 Regroupement de deux instructions
Regroupement du "git clone" et du "cd"
2021-11-01 15:35:39 +01:00
4dc534848b Faute d'orthographe
"éxécution" s'écrit "exécution"
2021-10-31 11:28:35 +01:00
33b5a19aae Ajout d'instructions
Ajout d'instructions sur l'installation et la désinstallation, ainsi qu'un lien
vers le wiki pour y trouver des renseignements utiles
2021-10-31 11:25:12 +01:00
ea7a690234 Changement de l'identité
Changement de l'adresse mail
2021-10-30 18:29:11 +02:00
87e345bbfb Mise à jour de 'Makefile' 2021-10-30 15:52:19 +02:00
37210743bc Correction d'un oubli
Pour l'entrée abrégée 'q', rajout de la méthode ltrim pour la MàJ de prompt.
2021-10-28 00:20:24 +02:00
5 changed files with 46 additions and 7 deletions

View File

@ -25,4 +25,7 @@ mrproper: clean
install: bin/catwalk
@mkdir -p /usr/local/bin/
cp bin/catwalk /usr/local/bin/
install -p bin/catwalk /usr/local/bin/
uninstall:
rm -f /usr/local/bin/catwalk

View File

@ -1,3 +1,32 @@
# catwalk-cli
# Catwalk CLI
Interface en lignes de commande pour le jeu Catwalk
Interface en lignes de commande pour le jeu Catwalk
## Instructions d'installation
**Attention: La compilation et l'exécution de Catwalk CLI requièrent l'installation de la bibliothèque [libcatwalk](https://git.kaz.bzh/valentin/libcatwalk), version antérieure ou égale à [version 0.1 alpha](https://git.kaz.bzh/valentin/libcatwalk/releases/tag/v0.1alpha).**
1. Il faut d'abord cloner le dépôt et y accéder (faire attention à la version) :
```
$ git clone https://git.kaz.bzh/valentin/catwalk-cli.git -n -b v0.1alpha
$ cd catwalk-cli
```
2. Ensuite, il faut compiler :
```
$ make
```
3. Enfin, il faut installer :
```
$ sudo make install
```
## Utilisation
Une aide précise est disponible sur le [wiki](https://git.kaz.bzh/valentin/catwalk-cli/wiki/).
## Désinstallation
Pour désinstaller, il faut exécuter
```
$ sudo make uninstall
```

View File

@ -349,8 +349,9 @@ void interact(int width)
case 2: puts("Cannot move: already went there"); break;
}
// MàJ de prompt
strcpy(buffer, prompt+strlen("d"));
ltrim(prompt, buffer);
}
else if STR_STARTS_WITH(prompt, "z")
{

View File

@ -24,7 +24,7 @@
#include "interact.h"
#include "simplegen.h"
#define PROGRAM_VERSION "1.0"
#define PROGRAM_VERSION "Alpha 0.1"
void help(char *program_name)
{
@ -38,12 +38,17 @@ Usage : %s [parameters]\n",
-s, --simple Create a grid, without permitting to play.\n\
-w, --width <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 <valentin@moguerou.net>.");
This program was made with love by Valentin Moguerou <valentin@kaz.bzh>.");
}
void version()
{
printf("Catwalk CLI version 1.0\n");
puts("Catwalk CLI version alpha 0.1\n\
Copyright (C) 2021 Valentin Moguerou <valentin@kaz.bzh>\n\
License GPLv3+ : GNU GPL version 3 or later\n\
<https://gnu.org/licenses/gpl.html>\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)

View File

@ -23,6 +23,7 @@
void simple_generation(int width)
{
grid *gd = init_grid(width);
random_start(gd);
refresh_grid(gd);
print_simple_grid(gd);