diff --git a/README.md b/README.md index 09e632e..4cfd26e 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,13 @@ Minesweeper game. 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 - 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 - s : take a screenshot +all of these action can be done with the menu bar + # building 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 ``` -to run +or to build in release mode : + +```console +$ make release +``` + +to run : ```console $ ./mineur diff --git a/main.c b/main.c index 227921e..0400fd1 100644 --- a/main.c +++ b/main.c @@ -31,7 +31,7 @@ char zero[16][30] = {0}; // I confused myself with game type, mode and diff, but it all mean the same typedef enum GameType { - BEGINNER, + BEGINNER = 0, INTERMEDIATE, EXPERT, GAME_TYPE_NB,