From c613e265558b538d17de3b470247efe1e41213ca Mon Sep 17 00:00:00 2001 From: dawidg81 Date: Thu, 29 Jan 2026 15:35:30 +0100 Subject: Deployed 21a8a4e with MkDocs version: 1.4.2 --- 404.html | 49 ++++- code/classes/index.html | 516 +++++++++++++++++++++++++++++++++++++++++++++++ code/index.html | 304 ---------------------------- code/intro/index.html | 403 ++++++++++++++++++++++++++++++++++++ index.html | 53 ++++- search/search_index.json | 2 +- sitemap.xml | 5 + sitemap.xml.gz | Bin 195 -> 195 bytes 8 files changed, 1023 insertions(+), 309 deletions(-) create mode 100644 code/classes/index.html delete mode 100644 code/index.html create mode 100644 code/intro/index.html diff --git a/404.html b/404.html index ce54f72..5260c00 100644 --- a/404.html +++ b/404.html @@ -187,13 +187,60 @@ + +
  • + + + + + + + + + + +
  • + + diff --git a/code/classes/index.html b/code/classes/index.html new file mode 100644 index 0000000..9ba8523 --- /dev/null +++ b/code/classes/index.html @@ -0,0 +1,516 @@ + + + + + + + + + + + + + + + + Classes - minesweeper + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + Skip to content + + +
    +
    + +
    + + + + +
    + + +
    + +
    + + + + + + +
    +
    + + + +
    +
    +
    + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + +
    +
    + + + + +

    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.

    + + +
    +
    +
    + +
    + + + +
    +
    +
    +
    + + + + + + + + \ No newline at end of file diff --git a/code/index.html b/code/index.html deleted file mode 100644 index cba0b88..0000000 --- a/code/index.html +++ /dev/null @@ -1,304 +0,0 @@ - - - - - - - - - - - - - - - - Code documentation - minesweeper - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - Skip to content - - -
    -
    - -
    - - - - -
    - - -
    - -
    - - - - - - -
    -
    - - - -
    -
    -
    - - - - -
    -
    -
    - - - -
    -
    -
    - - - -
    -
    -
    - - -
    -
    - - - - -

    Code documentation

    -

    This site documentates minesweeper code.

    - - -
    -
    -
    - -
    - - - -
    -
    -
    -
    - - - - - - - - \ No newline at end of file diff --git a/code/intro/index.html b/code/intro/index.html new file mode 100644 index 0000000..45b61f0 --- /dev/null +++ b/code/intro/index.html @@ -0,0 +1,403 @@ + + + + + + + + + + + + + + + + Code documentation - minesweeper + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + Skip to content + + +
    +
    + +
    + + + + +
    + + +
    + +
    + + + + + + +
    +
    + + + +
    +
    +
    + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + +
    +
    + + + + +

    Code documentation

    +

    This site documentates minesweeper code.

    +

    Chapters

    + + + +
    +
    +
    + +
    + + + +
    +
    +
    +
    + + + + + + + + \ No newline at end of file diff --git a/index.html b/index.html index f9bd6b7..9b917af 100644 --- a/index.html +++ b/index.html @@ -233,13 +233,60 @@ + +
  • + + + + + + + + + + +
  • + + @@ -312,13 +359,13 @@ -