Skip to content

N-Queens Puzzle Game & Web Solver – Python and Web based Project This repository contains two interactive versions of the classic N-Queens problem:

Notifications You must be signed in to change notification settings

VGNET-LAB/n_Queens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

n_Queens

N-Queens Puzzle Game & Web Solver – Python and Web based Project This repository contains two interactive versions of the classic N-Queens problem:

Python Game (4–20 Queens, Level-Based)

  • Play the N-Queens puzzle as a progressive level-based game.
  • Sound effects:
    • Success signal when completing a level.
    • Unique sounds for correct and wrong queen placement.
  • Animations: Console-based animations enhance the gameplay.
  • Game Features:
    • Menu with level selection.
    • Restart, hint, and undo buttons.
    • Customizable queen styles to personalize your experience.
    • Smooth UI with interactive feedback.

Web Version (Solver & Visualizer)

  • Choose N (4–20 queens) and watch the solver find solutions automatically.
  • Displays all possible solutions with visual chessboard placement.
  • Generates a search tree to show how the algorithm explores solutions.
  • Supports multiple search techniques (BFS, DFS, etc.).
  • Built with a simple and interactive web UI (HTML, CSS, JavaScript).

Tech Stack

  • Python – Core logic, game features, solver.
  • HTML, CSS, JavaScript – Web-based visual interface.
  • Algorithms – Backtracking, BFS, DFS, and more.

Why this project?

  • A fun and interactive way to explore the N-Queens puzzle.
  • Combines gameplay, visualization, and algorithmic learning.
  • Great educational tool for understanding search algorithms and backtracking.
  • Open-source project for students, educators, and developers.

Quick Start

# Clone the repository
git clone https://github.com/your-username/n-queens-game.git

# Navigate to the project folder
cd n-queens-game

# Run the Python game
python nqueens_game.py

# Or run the web solver (if Flask/Django used)
python app.py

About

N-Queens Puzzle Game & Web Solver – Python and Web based Project This repository contains two interactive versions of the classic N-Queens problem:

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages