An open API service indexing awesome lists of open source software.

https://github.com/rasbeetech/myminesweeper_flask

Flask Web Application
https://github.com/rasbeetech/myminesweeper_flask

bootstrap4 flask html5 javascript python

Last synced: 2 months ago
JSON representation

Flask Web Application

Awesome Lists containing this project

README

          

# Minesweeper-Flask

A simple Web-Application to play Minesweeper created with Flask framework.

## About
Back-end: Python
Front-end: Javascript

## Dependencies

Python version: 3.8.7
Flask version: 1.1.2
Jinja2
HTML5
Javascript

## Sample Images
Start screen | Game play
:-------------------------:|:-------------------------:
![alt text](https://github.com/RasbeeTech/Minesweeper_Flask/blob/main/readme_images/sample_image_1.png) | ![alt text](https://github.com/RasbeeTech/Minesweeper_Flask/blob/main/readme_images/sample_image_2.png)

## Minesweeper rules
The rules of the game are fairly simple. Uncover tiles and use indicators to avoid mines. To win, uncover all tiles that do not have mines. The numbered indicators represent the amount of mines in the adjacent tiles.

## How to play
* Left-click: tile to reveal tile.
* Right-click: to flag mine locations.
* Changing difficulty will start a new game

## Run()
To run the application:
1. With your choice of command line interface, navigate to directory containing 'main.py'.
2. Type and enter the following script
```bash
User:$ run(): FLASK_APP=main.py flask run
```
3. Once entered, you should see the following in your CLI:
![alt text](https://github.com/RasbeeTech/Minesweeper_Flask/blob/main/readme_images/sample_image_3.png)
4. In Google Chrome or your choice of browser, enter 'http://127.0.0.1:5000' into the address bar.
5. Have fun!