uni

University stuff
git clone git://git.margiolis.net/uni.git
Log | Files | Refs | README | LICENSE

minesweeper.h (511B)


      1 #ifndef MINESWEEPER_H
      2 #define MINESWEEPER_H
      3 
      4 #include <stdlib.h>
      5 #include <string.h>
      6 #include <time.h>
      7 #include "wins.h"
      8 
      9 #define BLANK ' '
     10 #define MINE '*'
     11 
     12 void init_db	 (Board *b);
     13 void fill_db	 (Board *b);
     14 void init_mb	 (Board *b);
     15 void place_mines (Board *b);
     16 void add_adj	 (Board *b);
     17 int is_mine		 (const Board *b, int r, int c);
     18 int outof_bounds (const Board *b, int r, int c);
     19 uint8_t adj_mines(const Board *b, int r, int c);
     20 void fill_spaces (Board *b);
     21 void die		 (void);
     22 
     23 #endif /* MINESWEEPER_H */