Skip to content

angrylaa/minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper w/ SQL

I implemented minesweeper with SQL!

Demo Video

minesweeper-sql.demo.mp4

Usage


Installation

  1. Set up an SQL server:
  • With Docker -> this requires you have Docker installed.
docker run --name minesweeper -d -p 2022:5432 -e POSTGRES_PASSWORD=postgres postgres
  • If you set up your own server, you'll have to change the credentials.
  1. Install the dependencies required for this:
pip install keyboard psycopg2
  1. Run the program!
python input.py

Starting The Game

  1. The starting position of your cursor will ALWAYS be zero.
  2. Your cursor is represented by ★

Keybinds

  1. WASD -> This is how you navigate the field.
  2. F -> This will flag a cell in the field. You can toggle a flag on/off.
  3. R -> This will reveal a cell, OR perform chording. a. Chording will cause the game to end IF you accidentally reveal a mine.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors