AlexanderReaper7 / mine_sweeper

A hobby project with the purpose of learning the Rust programming language by making mine sweeper with the piston library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mine_sweeper

This is a hobby project with the purpose of learning the Rust programming language.

Instructions

Run the .exe with three arguments, in the following order and type: Columns:usize Rows:usize MineConcentration:f64.

Example

mine_sweeper.exe 60 30 0.15
This creates a game with 60 columns and 30 rows where roughly 15% of the cells are mines.

Left click to reveal a cell.
Right click to flag a cell.
You win when all mines have been flagged, victory is shown by the screen becoming green.
You lose by revealing a mine, this is shown by a red screen.

TODO

  • Add instructions for what the colors mean.
  • Implement AI versions.

About

A hobby project with the purpose of learning the Rust programming language by making mine sweeper with the piston library.


Languages

Language:Rust 100.0%