GithubHelp home page GithubHelp logo

fairminesweeper's Introduction

FairMinesweeper

Short demo of the game

Tired of losing Minesweeper games on 50-50 random guesses? Suffer no more!

This is a Minesweeper implementation on React, with a very cool feature: whenever you are forced to make a random guess because you've exhausted all other options (either opening squares or placing flags), the game guarantees that that random guess will always be successful. So no more games where the luck of the draw kills you!

If you are a beginner and you are stuck, the game is also equipped with a "get hint" button that tells you what is the next move you could make, and an explanation of why this is the case.

To do both of the above, I've implemented a Minesweeper solver that "looks" at a Minesweeper board and figures out which is the next move you could make. If you want to look at the details, check SOLVER.md.

Installation and running

Requires Node (I recommend version 16). yarn is recommended, but not needed.

  1. Install dependencies: run yarn install or npm install.
  2. Run the app: yarn start or npm start.
  3. Run unit tests: yarn test or npm run test.

fairminesweeper's People

Contributors

unpollito avatar

Watchers

 avatar

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.