RossielCS / Minesweeper-Solver

This project has as main objective to build an app that solves a board similar to the minesweeper game.

Home Page:https://rossielcs-minesweeper-solver.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minesweeper Solver

This project has as main objective to build an app that solves a board similar to the minesweeper game.
The app takes an API and retrieves a random board, which is a two dimensional Array. The application should replace all the white spaces with an integer representing the number of bombs near the element.
Once the board is solved, the app will proceed to return an API with two properties, the problem, and the solution.

🌎 Live Demo

You can try it here.

πŸ”¨ Built With

  • Ruby 2.7.0,
  • Rails 5.2.0,
  • Rest-client 2.1,
  • Rspec-rails 3.4,
  • Rubocop 0.81.0,
  • Visual Studio Code 1.50.1,
  • Docker

πŸ’» Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

You need to install:

Usage

To run the project:

  1. Clone the repository with Git.
  2. Open the repository with your IDE and open the terminal.
  3. Build a new docker image.
    $ docker-compose build
  4. To run the image.
    $ docker-compose up
  5. Open http://localhost:3000 to view it in the browser.

Run tests

Unit tests for:

  • Solver module.

  • Requests.

    In your terminal search the repository's address and run:
    $ docker-compose run --rm web rspec --format documentation
    It will provide you well-organized output on your terminal with information about the tests.

Deployment

To deploy on Heroku you can check this tutorial from the Odin Project.

After pushing the last changes to the remote repository, follow this steps:

  1. Create the heroku app.
    $ heroku create
  2. Verify that you see heroku in the output.
    $ git remote
  3. This will push the master branch.
    $ git push heroku master
  4. Open the app
    $ heroku open

πŸ’Ž Features

  • Built using docker, which means it is not necessary to install any other software to run the app.

πŸ‘© Author

Rossiel Carranza

🀝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give an ⭐️ if you like this project!

πŸ“ License

This project is MIT licensed.

About

This project has as main objective to build an app that solves a board similar to the minesweeper game.

https://rossielcs-minesweeper-solver.herokuapp.com


Languages

Language:Ruby 98.6%Language:Dockerfile 0.7%Language:HTML 0.6%