Terminal game of Minesweeper, implemented in C with ncurses.
{#} | Time | Hash | Subject | Author | # | (+) | (-) | GPG? |
---|---|---|---|---|---|---|---|---|
19 | 13 Sep 2020 14:23 | 71d76ab | Add majority of game logic, rendering | Josh Stockin | 1 | 1 | 1 | G |
1 | #include <ncurses.h> |
2 | |
3 | int init_colorpairs(void) { |
4 | use_default_colors(); |
5 | start_color(); |
6 | init_pair(1, COLOR_BLUE, -1); |
7 | init_pair(2, COLOR_GREEN, -1); |
8 | init_pair(3, COLOR_RED, -1); |
9 | init_pair(4, COLOR_MAGENTA, -1); |
10 | init_pair(5, COLOR_RED, -1); |
11 | init_pair(6, COLOR_CYAN, -1); |
12 | init_pair(7, COLOR_BLACK, -1); |
13 | init_pair(8, COLOR_MAGENTA, -1); |
14 | return 0; |
15 | } |
16 |