Giter VIP home page Giter VIP logo

n-queen-a-star's Introduction

N-Queen Problem Solver with A* Algorithm

This C# project is designed to solve the N-Queen problem using the A* algorithm. The N-Queen problem involves placing N queens on an N×N chessboard in such a way that no two queens threaten each other. The A* algorithm is used to efficiently search for the optimal solution.

Features

  • Efficiently solves the N-Queen problem using the A* algorithm.
  • Provides a user-friendly interface to visualize the chessboard and the solutions.
  • Allows the user to specify the value of N (default value is 8).
  • Provides detailed statistics about the search process, including the number of nodes expanded and the execution time.

Installation and Usage

  1. Clone the repository or download the source code.
  2. Open the project in your preferred C# development environment (e.g., Visual Studio).
  3. Build the project to ensure all dependencies are resolved.
  4. Run the project.

Upon running the project, a graphical user interface will be displayed, allowing you to interact with the N-Queen solver. You can specify the value of N in the input field and click the "Solve" button to find the solutions. The interface will dynamically update to show the chessboard and highlight the queen placements. If a solution is found, it will be displayed on the chessboard.

Example

Here's an example of running the project with N=8:

  1. Run the project.
  2. Set the value of N to 8 in the input field.
  3. Click the "Solve" button.
  4. The interface will display the chessboard with the queen placements.

Contributions

Contributions to this project are welcome. If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

n-queen-a-star's People

Contributors

ilia-abolhasani avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.