Index

ncurses-minesweeper / 4fbaed5

Terminal game of Minesweeper, implemented in C with ncurses.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
509 Sep 2020 21:112a7d780Update Makefile; begin program logicJosh Stockin1714G

Blob @ ncurses-minesweeper / src / main.c

text/plain270 bytesdownload raw
1#include <stdio.h>
2#include <ncurses.h>
3#include "main.h"
4#include "draw.h"
5
6int 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