Skip to content

amartincodes/rustsweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rustsweeper

This is a simple minesweeper game written in Rust using Bracket Terminal. It's a command line application that allows you to play minesweeper in your terminal.

Game Demo

Features

  • Multiple difficulty levels
  • Game timer
  • Cheat mode to reveal all mines
  • Clickable UI elements
  • Keyboard shortcuts for actions
  • Visual feedback for game states (win/loss)
  • Modes for revealing cells and placing flags on left click

Installation

To install Rustsweeper, you need to have Rust installed on your system. You can install Rust using rustup. Once you have Rust installed, you can clone the repository and build the project:

git clone

Usage

To run the game, navigate to the project directory and use the following command:

cargo run

UI

Menu

Menu Snapshot

New Game

New Game Snapshot

In progress game

In Progress Game Snapshot

Failed Game

Failed Game Snapshot

Won Game

Won Game Snapshot

Controls

  • In the menu:

    • Difficulty, start and quit are clickable.
    • Use numbers 1 - 5 to select the difficulty level.
    • Press enter to start a new game.
    • Press 'q' or 'esc' to quit the game.
  • In the game:

    • The game grid & shortcut buttons are clickable
    • Use left click to reveal a cell when in reveal mode.
    • Use left click to place/remove a flag when in flag mode.
    • Use shift + left click to place/remove a flag regardless of the current mode.
    • Press 'r' to restart the game.
    • Press 'm' to return to change the mode.
    • Press 'c' to toggle cheat mode.
    • Press 'q' or 'esc' to quit the game.

About

Minesweeper built in rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages