Index

ncurses-minesweeper / 48085a2

Terminal game of Minesweeper, implemented in C with ncurses.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
4918 Oct 2021 15:555abfbc6Add functionality to enter help screen during gameJosh Stockin120G

Blob @ ncurses-minesweeper / src / strings.c

text/plain3596 bytesdownload raw
1/* ncurses-minesweeper Copyright (c) 2021 Joshua 'joshuas3' Stockin
2 * <https://joshstock.in>
3 * <https://git.joshstock.in/ncurses-minesweeper>
4 *
5 * This software is licensed and distributed under the terms of the MIT License.
6 * See the MIT License in the LICENSE file of this project's root folder.
7 *
8 * This comment block and its contents, including this disclaimer, MUST be
9 * preserved in all copies or distributions of this software's source.
10 */
11
12const char *copyright_line = "ncurses-minesweeper Copyright (c) Joshua Stockin 2021";
13
14// clang-format off
15const char *title_screen_splash[7] = {
16 ":::: :::: ::::::::::: :::: ::: :::::::::: :::::::: ::: ::: :::::::::: :::::::::: ::::::::: :::::::::: ::::::::: ",
17 "+:+:+: :+:+:+ :+: :+:+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+:",
18 "+:+ +:+:+ +:+ +:+ :+:+:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+",
19 "+#+ +:+ +#+ +#+ +#+ +:+ +#+ +#++:++# +#++:++#++ +#+ +:+ +#+ +#++:++# +#++:++# +#++:++#+ +#++:++# +#++:++#: ",
20 "+#+ +#+ +#+ +#+ +#+#+# +#+ +#+ +#+ +#+#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+",
21 "#+# #+# #+# #+# #+#+# #+# #+# #+# #+#+# #+#+# #+# #+# #+# #+# #+# #+#",
22 "### ### ########### ### #### ########## ######## ### ### ########## ########## ### ########## ### ###"};
23const char *title_screen_splash_small[5] = {
24 " __ ___ ____ _ __ ______ _____ _ __ ______ ______ ____ ______ ____ ",
25 " / |/ // _// | / // ____// ___/| | / // ____// ____// __ \\ / ____// __ \\",
26 " / /|_/ / / / / |/ // __/ \\__ \\ | | /| / // __/ / __/ / /_/ // __/ / /_/ /",
27 " / / / /_/ / / /| // /___ ___/ / | |/ |/ // /___ / /___ / ____// /___ / _, _/ ",
28 "/_/ /_//___//_/ |_//_____/ /____/ |__/|__//_____//_____//_/ /_____//_/ |_| "};
29// clang-format on
30
31const char *title_screen_splash_text = "MINESWEEPER";
32const char *title_screen_buttons[5] = {"PLAY", "OPTIONS", "HELP", "ABOUT", "EXIT"};
33
34const char *game_help_note = "Press <?> for help, <q> to quit";
35
36const char *about_screen_title = "ABOUT";
37const char *about_website_source = "<https://git.joshstock.in/ncurses-minesweeper>";
38const char *about_website_home = "<https://joshstock.in>";
39const char *about_screen_back = "Back";
40
41const char *help_screen_title = "HELP";
42#define HELP_SCREEN_INFO_LEN 13
43const char *help_screen_info[HELP_SCREEN_INFO_LEN] = {
44 "Minesweeper is a logic game where mines are hidden in a grid of ",
45 "squares. The object is to open all the safe squares in the shortest",
46 "time possible.",
47 "",
48 "Use the <ENTER> key or <SPACE> to select menu items or open unopened",
49 "squares. Use the arrow keys or <hjkl> to move around. Use <f> to",
50 "toggle flags on squares. Use <ENTER> or <SPACE> on a numbered square",
51 "if enough surrounding squares are flagged in order to open remaining",
52 "surrounding squares. Use <r> to reset the board and <q> to quit.",
53 "",
54 "See the [OPTIONS] screen to change game settings.",
55 "",
56 "A minimum terminal resolution of 80x20 is recommended."};
57const char *help_screen_back = "Back";
58
59const char *options_screen_title = "OPTIONS";
60const char *options_screen_width = " Board width";
61const char *options_screen_height = "Board height";
62const char *options_screen_minecount = " # of Mines";
63const char *options_screen_back = "Back";
64