GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - patopolser/Queens-Solver: A tool designed to detect the Queens puzzle grid directly from the screen and solve it automatically.

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
Queens-Solver
Queens-Solver
 
 
include
include
 
 
.gitignore
.gitignore
 
 
Queens-Solver.sln
Queens-Solver.sln
 
 
README.md
README.md
 
 

Repository files navigation

Queens-Solver

A computer vision and automation tool that detects a Queens puzzle grid directly from the screen and solves it automatically.

VdeosinttuloHechoconClipchamp3-ezgif com-video-to-gif-converter

Full Demo

Features

  • Detects the Queens puzzle grid in real time using OpenCV.
  • Automatically extracts rows, columns, and colors from the detected grid.
  • Solves the puzzle respecting its rules (one queen per row, column, and color).
  • Can place queens back on the screen automatically.
  • Configurable click count and delay for puzzle interaction.

How It Works

  1. Screen Capture
    Captures the current screen and searches for a grid-like structure using edge detection and contour analysis.

  2. Grid Detection
    Uses Hough Transform to find horizontal and vertical lines. Merges close lines to determine the rows and columns of the puzzle.

  3. Color Matrix Extraction
    Creates a matrix representing the color of each cell by sampling its center.

  4. Puzzle Solving
    Runs the solver algorithm to find a valid queen placement based on the detected grid.

  5. Automated Interaction
    Clicks on the cells to place queens on the screen using the configured delay and number of clicks.

Usage

  1. Launch the program.
  2. Open the Queens puzzle on your screen.
  3. Press ENTER to start solving.
  4. Press END to exit.

The program will:

  • Detect the puzzle grid.
  • Print the detected grid size and color matrix.
  • Solve the puzzle and display the time taken.

Configuration

You can adjust the following defines in entry_point.cpp:

#define DELAY 0   // Delay between clicks (milliseconds)
#define CLICKS 1  // Number of clicks per cell

About

A tool designed to detect the Queens puzzle grid directly from the screen and solve it automatically.

Topics

automationcheatcomputer-visioncrownsgamelinkedinopencvqueens

Resources

Readme
Activity

Stars

3 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.