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

https://github.com/rtinter/n_queen_a_star_search

n_queen problem solution via A star search
https://github.com/rtinter/n_queen_a_star_search

Last synced: 18 days ago
JSON representation

n_queen problem solution via A star search

Awesome Lists containing this project

README

          

# n_queen_A_Star_Search
n_queen problem solution via A* search

type in the number of queens and the field will be generated accordingly.
The steps from node to node will be printed, as well as the f value,
which contains:
g(n) = cost for moving up or down with the value of 1 per step
h(n) = number of Queens that attack each other.