Browse Source

Merge branch 'Daniel' into 'main'

Chance Header

See merge request fdai7745/duellist-spielesammlung-projekt!14
remotes/origin/Areeb
fdai7745 11 months ago
parent
commit
2fa545e0be
  1. 2
      build/test/results/test_duellist_spielesammlung_projekt.pass
  2. 20
      src/main/duellist-spielesammlung-projekt.h

2
build/test/results/test_duellist_spielesammlung_projekt.pass

@ -75,4 +75,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.04444100000000617
:time: 0.01351129999989098

20
src/main/duellist-spielesammlung-projekt.h

@ -38,4 +38,24 @@ int FieldEmpty(const TicTacToeGame* game, int row, int col);
int decideGameType(); int decideGameType();
Player playRockPaperScissors(); Player playRockPaperScissors();
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define max_height 10
#define max_width 10
#define unknown_character 'x'
#define mine_character '@'
int end_check(char** minefield, char** mines, int height, int width);
int field_check(char** minefield, char** mines, int height, int width, int row, int column);
void show_minefield(char** minefield, int height, int width);
void free_minefield(char** minefield, int height);
int calculate_mines(int height, int width);
char** create_minefield(int height, int width, char within);
void distribute_mines(char** mines, int height, int width, int num_mines);
int minesweeper();
#endif // DUEELIST_SPIELESAMMLUNG_PROJEKT_H #endif // DUEELIST_SPIELESAMMLUNG_PROJEKT_H
Loading…
Cancel
Save