GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SecCodeSmith/SapperCpp

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
Image
Image
 
 
.gitignore
.gitignore
 
 
Board.cpp
Board.cpp
 
 
Board.h
Board.h
 
 
CMakeLists.txt
CMakeLists.txt
 
 
Field.cpp
Field.cpp
 
 
Field.h
Field.h
 
 
LICENSE
LICENSE
 
 
Play.cpp
Play.cpp
 
 
Play.h
Play.h
 
 
README.md
README.md
 
 
WindowGen.cpp
WindowGen.cpp
 
 
WindowGen.h
WindowGen.h
 
 
main.cpp
main.cpp
 
 
test.c
test.c
 
 

Repository files navigation

SapperCpp

SapperCpp is a C++ implementation of the classic Minesweeper game, developed as a course project to fulfill the requirements of a C++ programming course. The game utilizes the Simple and Fast Multimedia Library (SFML) to provide graphical rendering and user interaction.

Features

  • Graphical User Interface: Renders the game board and handles user interactions using SFML.
  • Customizable Board: Allows for different board sizes and difficulty levels by adjusting the number of mines.
  • Interactive Gameplay: Supports standard Minesweeper functionalities, including revealing cells, flagging mines, and checking for win/loss conditions.

Prerequisites

  • C++ Compiler: Ensure you have a C++17 compatible compiler installed.
  • SFML Library: Install the SFML library for graphical rendering and event handling.

Installation

  1. Clone the Repository:

    git clone https://github.com/SecCodeSmith/SapperCpp.git
    cd SapperCpp
  2. Install SFML:

    • On Ubuntu:
      sudo apt-get install libsfml-dev
    • On Windows:
      • Download the SFML library from the official website.
      • Follow the provided instructions to set up SFML with your compiler.
  3. Build the Project:

    mkdir build
    cd build
    cmake ..
    make

Usage

  • Run the Game:
    ./SapperCpp
  • Gameplay Instructions:
    • Left-click to reveal a cell.
    • Right-click to flag or unflag a cell as a mine.
    • The game ends when all non-mine cells are revealed or a mine is clicked.

Project Structure

  • main.cpp: Contains the main function to initialize and run the game.
  • Board.cpp / Board.h: Defines the game board and related functionalities.
  • Field.cpp / Field.h: Manages individual cells on the game board.
  • WindowGen.cpp / WindowGen.h: Handles the creation and management of the game window using SFML.
  • Play.cpp / Play.h: Implements the game logic and user interaction.

About

No description, website, or topics provided.

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.