Git Product home page Git Product logo

minesweeper's Introduction

minesweeper

Minesweeper implemented in terminal

image

Installation:

You have to compile it yourself, but that shouldn't be a problem. Only thing you need is cargo:

cargo build -r

After its done compiling, you can start it in ./target/release/minesweeper

Usage:

Start minesweeper with default difficulty (medium):

./minesweeper

Start minesweeper with different difficulty:

./minesweeper -d <easy|medium|hard>

Or you can create your custom difficulty:

./minesweeper -c <board width> <board height> <number of mines>

Detailed description

Game screen:

image

When you start the game, you will see the board in the middle and number of flags left above the board on the left side. You can then use arrow keys to change selected cell. By pressing d or Enter you reveal currently selected cell. To place/remove flag, you can press f.

When you fill the whole board and it's correct, you will see Victory message above the board on the right side.

Help screen

image

By pressing i you can display help with all other keybind that I didn't mention.

Technologies:

I used these libraries:

Links

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.