add features in readme

This commit is contained in:
_N3m0 2024-03-14 14:48:44 +01:00
parent 8a2ac7fb89
commit de70053c43
2 changed files with 17 additions and 2 deletions

View File

@ -4,6 +4,13 @@ Minesweeper game.
Oh no, my os doesn't comme with minesweeper preinstalled, let's make it myself. Oh no, my os doesn't comme with minesweeper preinstalled, let's make it myself.
# Features
- classic minesweeper
- different difficulty (beginner, intermediate, expert)
- screenshot
- timer / best time
# Keybind # Keybind
- q (for azerty) : close app - q (for azerty) : close app
@ -15,6 +22,8 @@ Oh no, my os doesn't comme with minesweeper preinstalled, let's make it myself.
- e : switch to expert difficulty - e : switch to expert difficulty
- s : take a screenshot - s : take a screenshot
all of these action can be done with the menu bar
# building # building
You need to install [raylib v5](https://github.com/raysan5/raylib/releases/tag/5.0), but any version should work. You need to install [raylib v5](https://github.com/raysan5/raylib/releases/tag/5.0), but any version should work.
@ -23,7 +32,13 @@ You need to install [raylib v5](https://github.com/raysan5/raylib/releases/tag/5
$ make $ make
``` ```
to run or to build in release mode :
```console
$ make release
```
to run :
```console ```console
$ ./mineur $ ./mineur

2
main.c
View File

@ -31,7 +31,7 @@ char zero[16][30] = {0};
// I confused myself with game type, mode and diff, but it all mean the same // I confused myself with game type, mode and diff, but it all mean the same
typedef enum GameType { typedef enum GameType {
BEGINNER, BEGINNER = 0,
INTERMEDIATE, INTERMEDIATE,
EXPERT, EXPERT,
GAME_TYPE_NB, GAME_TYPE_NB,