Index
Terminal game of Minesweeper, implemented in C with ncurses.
Latest Commit
{#} | Time | Hash | Subject | Author | # | (+) | (-) | GPG? |
5 | 09 Sep 2020 21:11 | 2a7d780 | Update Makefile; begin program logic | Josh Stockin | 1 | 7 | 14 | G |
1 | #include <stdio.h> |
2 | #include <ncurses.h> |
3 | #include "main.h" |
4 | #include "draw.h" |
5 |
|
6 | int main(void) { |
7 | initscr(); |
8 | //noecho(); |
9 | cbreak(); |
10 | clear(); |
11 |
|
12 | draw(0); // draw initial window |
13 | draw_loop(); // enter control input loop |
14 |
|
15 | endwin(); |
16 | return 0; |
17 | } |
18 |
|