Terminal game of Minesweeper, implemented in C with ncurses.
{#} | Time | Hash | Subject | Author | # | (+) | (-) | GPG? |
---|---|---|---|---|---|---|---|---|
18 | 12 Sep 2020 23:23 | 82ddf89 | Colors; base game state and game rendering | Josh Stockin | 1 | 15 | 0 | G |
1 | #include <ncurses.h> |
2 | |
3 | int init_colorpairs(void) { |
4 | start_color(); |
5 | use_default_colors(); |
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 |