Skip to content

theodore-lheureux/glsweeper-rs

Repository files navigation

GLSweeper-RS, a Rust implementation of Minesweeper using OpenGL

Minesweeper clone written in Rust using OpenGL for rendering

Screenshot_20230319_184629

How to play

Mines are hidden in the grid. Click on a tile to reveal it. If it is a mine, you lose. If it is not a mine, the number on the tile indicates how many mines are in the 8 tiles around it. If you reveal all tiles that are not mines, you win.

  • Left click to reveal a tile
  • Right click to flag a tile
  • Left click on a number to reveal all tiles around it if the number of flags around it is equal to the number on the tile
  • Press Space to reveal all tiles around a tile or flag the tile if it is not revealed
  • Press R to start a new game
  • Press Escape to quit the game
  • Press + to increase the grid size
  • Press - to decrease the grid size

How to build

Linux

  • Install GLFW (pacman -S glfw on Arch Linux, apt install libglfw3-dev on Debian/Ubuntu)
  • Install Rust
  • Run cargo build --release or cargo run --release

Windows

MacOS

  • Rip Bozo idk how