diff options
| author | dawidg81 <dawidgorski.m@gmail.com> | 2026-02-01 12:15:55 +0100 |
|---|---|---|
| committer | dawidg81 <dawidgorski.m@gmail.com> | 2026-02-01 12:15:55 +0100 |
| commit | 07eb384f440ec2fe6faef660fc515025ac22e110 (patch) | |
| tree | c864a22c6fae2693e9e3b1b52cd2deaab83610fd /docs/site/search/search_index.json | |
| parent | 143c2dd37d21c682c909d92a93f88eb9bc6ebf17 (diff) | |
cleared docs; fixed Utils declaration
Diffstat (limited to 'docs/site/search/search_index.json')
| -rw-r--r-- | docs/site/search/search_index.json | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/docs/site/search/search_index.json b/docs/site/search/search_index.json deleted file mode 100644 index 43bae65..0000000 --- a/docs/site/search/search_index.json +++ /dev/null @@ -1 +0,0 @@ -{"config":{"indexing":"full","lang":["en"],"min_search_length":3,"prebuild_index":false,"separator":"[\\s\\-]+"},"docs":[{"location":"","text":"About A reimplementation of minesweeper game in C++ in terminal. Concept There are going to be 3 difficulties and one additional option where user can determine plot size and amount of mines by himself. Game commands are going to be read from normal std::cin input method. The project is not going to use curses, ncurses or lncurses libraries for now. Plot is going to be displayed (printed) on the upper left side of the screen, eventually with colors. Here are planned symbols of in-game elements: # - unrevealed tile. . - revealed tile (no mines around). X - (red color) bomb. Colorful numbers from 1 (1 mine around the revealed tile) to (maximum) 8 (8 mines around the revealed tile) - numbers saying how much mines are around it.","title":"About"},{"location":"#about","text":"A reimplementation of minesweeper game in C++ in terminal.","title":"About"},{"location":"#concept","text":"There are going to be 3 difficulties and one additional option where user can determine plot size and amount of mines by himself. Game commands are going to be read from normal std::cin input method. The project is not going to use curses, ncurses or lncurses libraries for now. Plot is going to be displayed (printed) on the upper left side of the screen, eventually with colors. Here are planned symbols of in-game elements: # - unrevealed tile. . - revealed tile (no mines around). X - (red color) bomb. Colorful numbers from 1 (1 mine around the revealed tile) to (maximum) 8 (8 mines around the revealed tile) - numbers saying how much mines are around it.","title":"Concept"},{"location":"code/classes/","text":"Classes The code is mostly being structured in classes. Game Game class is operating on game logic, display and usage. Global variables Public editDiff() A function of type int . Responsible for providing interface letting user edit custom game parameters (fourth difficulty option). Uses methods from Utils class. Detailed specification of this function is int editDiff() . initDiff() A function of type void . This function sets game parameters ( boardWidth , boardHeight , mines ) to specified value depending on gived difficulty value diff (type int ). The function requires a diff parameter of type int . Full specification of declaration of this function is void initDiff(int diff) . First difficulty is Easy with diff value of 0, second difficulty is Medium with diff value of 1, third difficulty is Hard with diff value of 2, fourth difficulty is Custom with diff value of 3. On Custom difficulty given, editDiff() is being called. Plot width, which means how much cells wide is the plot, is declared as boardWidth . The same with boardHeight . Amount of mines randomly placed in cells is declared as mines . These three variables are a type of int and are being properly set by initDiff() function. For Easy difficulty, all three variables are set to value 9 , which means that the plot is 9 cells wide and high, with 9 bombs randomly spread across the plot.","title":"Classes"},{"location":"code/classes/#classes","text":"The code is mostly being structured in classes.","title":"Classes"},{"location":"code/classes/#game","text":"Game class is operating on game logic, display and usage.","title":"Game"},{"location":"code/classes/#global-variables","text":"","title":"Global variables"},{"location":"code/classes/#public","text":"","title":"Public"},{"location":"code/classes/#editdiff","text":"A function of type int . Responsible for providing interface letting user edit custom game parameters (fourth difficulty option). Uses methods from Utils class. Detailed specification of this function is int editDiff() .","title":"editDiff()"},{"location":"code/classes/#initdiff","text":"A function of type void . This function sets game parameters ( boardWidth , boardHeight , mines ) to specified value depending on gived difficulty value diff (type int ). The function requires a diff parameter of type int . Full specification of declaration of this function is void initDiff(int diff) . First difficulty is Easy with diff value of 0, second difficulty is Medium with diff value of 1, third difficulty is Hard with diff value of 2, fourth difficulty is Custom with diff value of 3. On Custom difficulty given, editDiff() is being called. Plot width, which means how much cells wide is the plot, is declared as boardWidth . The same with boardHeight . Amount of mines randomly placed in cells is declared as mines . These three variables are a type of int and are being properly set by initDiff() function. For Easy difficulty, all three variables are set to value 9 , which means that the plot is 9 cells wide and high, with 9 bombs randomly spread across the plot.","title":"initDiff()"},{"location":"code/intro/","text":"About This site documentates minesweeper code. Chapters Classes","title":"About"},{"location":"code/intro/#about","text":"This site documentates minesweeper code.","title":"About"},{"location":"code/intro/#chapters","text":"Classes","title":"Chapters"}]}
\ No newline at end of file |
