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

https://github.com/lloydmeta/nqueens-rs

Purely functional naive NQueens solver in Rust.
https://github.com/lloydmeta/nqueens-rs

nqueens nqueens-problem rust

Last synced: 7 months ago
JSON representation

Purely functional naive NQueens solver in Rust.

Awesome Lists containing this project

README

          

# NQueens [![Crates.io](https://img.shields.io/crates/v/nqueens.svg)](https://crates.io/crates/nqueens) [![Build Status](https://travis-ci.org/lloydmeta/nqueens-rs.svg?branch=master)](https://travis-ci.org/lloydmeta/nqueens-rs) [![nqueens](https://docs.rs/nqueens/badge.svg)](https://docs.rs/nqueens)

NQueens solver in Rust.

Highlights:

* Fairly fast
* Solver logic is pure and uses just higher-order functions

## Usage

`cargo install nqueens`

```shell
USAGE:
nqueens --n

FLAGS:
-h, --help Prints help information
-V, --version Prints version information

OPTIONS:
-N, --n The number of queens and side length of the board you want to solve for
```