commit 6dce6dc15e16a001b049f7df8e98ca4cf5973b7d
parent 727741e4f2260677e58863afe42af189f2e69637
Author: Christos Margiolis <christos@margiolis.net>
Date: Fri, 24 Jan 2020 01:57:28 +0200
changes
Diffstat:
2 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/assignment-1.5-arrays-pointers-files/README.md b/assignment-1.5-arrays-pointers-files/README.md
@@ -15,16 +15,23 @@
* Enter number of rows
* Enter number of mines
* Move with `w`/`s`/`a`/`d` or Vim keys (`k`/`j`/`h`/`l`)
-* Open cell with `[ENTER]` or `o`
+* Open cell with `[ENTER]`, `[SPACE]`, or `o`
* Flag cell with `f`
* Defuse mine (only if flagged) with `g`
* You win if you defuse all the mines
* You lose in case you open a mine or you try to defuse a flagged cell not containing a mine
-* Quit with `q`
+
+Additional controls
+
+* `p`: Pause audio
+* `+`: Volume up
+* `-`: Volume down
+* `q`: Quit
### To Do
* Fix screen bug with big dimensions
+* Handle resizing
* Add colors
### Preview
@@ -42,8 +49,10 @@ Combination printing programs
### Linux
-**Dependencies**
+**Dependencies** (for minesweeper only)
* `ncurses`
+* `SDL2`
+* `SDL2_mixer`
```shell
$ cd full_path/assignment-1.5-arrays-pointers-files/program_name
@@ -57,7 +66,10 @@ $ make clean # optional
**Dependencies:**
* MinGW gcc compiler
* `make`
-* `PDCurses` library (for minesweeper)
+ * *For minesweeper*
+ * `PDCurses`
+ * `SDL2`
+ * `SDL2_mixer`
In CMD, do the following:
diff --git a/assignment-1.5-arrays-pointers-files/fcombinations/src/fcombinations.c b/assignment-1.5-arrays-pointers-files/fcombinations/src/fcombinations.c
@@ -7,8 +7,6 @@ int get_n(FILE *dataFile)
do
{
fscanf(dataFile, "%d\n", &N);
-
- printf("%d\n", N);
} while (N <= 6 || N > 49);
return N;