Skip to content

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

Notifications You must be signed in to change notification settings

AlexanderReaper7/mine_sweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages