Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Feature Request: Add Text-Based Minesweeper Game in C #1436

Open
KSVeerendernath opened this issue Oct 24, 2024 · 2 comments
Open
Labels
enhancement New feature or request Stale

Comments

@KSVeerendernath
Copy link

KSVeerendernath commented Oct 24, 2024

Detailed description

We propose to implement a text-based version of the classic Minesweeper game in C. The game will operate in the console, allowing players to uncover cells, flag potential mines, and attempt to clear the board without triggering a mine.

Context

Minesweeper is a well-known puzzle game that challenges players to strategically reveal cells while avoiding hidden mines. This implementation aims to provide an engaging console-based experience that introduces fundamental programming concepts such as data structures, recursion, and user interaction.

Possible implementation

  1. Game Board:

    • A 9x9 grid will represent the game board, containing 10 randomly placed mines.
    • Each cell will either be empty, contain a mine, or display a number indicating adjacent mines.
  2. Core Mechanics:

    • Cell Revealing: Players can reveal cells. If a mine is revealed, the game ends. If a cell is empty and has no adjacent mines, surrounding cells will also be revealed automatically.
    • Flagging Mines: Players can flag cells as suspected mines.
  3. Game Display:

    • The console will display the current state of the board, showing revealed cells with adjacent mine counts or mines, flagged cells, and hidden cells as dots (.).
  4. User Interaction:

    • Players will input their desired row, column, and action (r for reveal, f for flag/unflag), with input validation to ensure valid moves.
  5. End Game Logic:

    • Implement logic to check for winning and losing conditions, displaying appropriate messages at the end of the game.

Additional information

We are master's students @KSVeerendernath @manutopp @gurramtejaswini, and as part of our coursework, we need to contribute to a repository in any way. We have chosen to contribute to this repository by adding a new game. Hope you accept our feature.

This feature will enhance the repository by adding a fully functional game, demonstrating the versatility of C programming and encouraging further contributions from students interested in game development.

Repo link: TheAlgorithms/C
Location: Games Directory

@KSVeerendernath KSVeerendernath added the enhancement New feature or request label Oct 24, 2024
@KSVeerendernath
Copy link
Author

Hi @Panquesito7 @tjgurwara99 @alexpantyukhin,

I hope you are all doing well!

We are master's students [@KSVeerendernath @manutopp @gurramtejaswini] from NAU, and as part of our coursework, we need to contribute to a repository in some way. We have chosen to contribute to this [repository] by adding a new game [Feature].

Please consider our request and approve our contribution. We need your approval to inform our professor, so we would greatly appreciate your support in allowing us to proceed with the game development.

Please let me know if you require any further information.

Thanks!!

Copy link
Contributor

This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Stale
Projects
None yet
Development

No branches or pull requests

1 participant