https://github.com/james-p-d/nqueens
N-Queens solver in Common Lisp
https://github.com/james-p-d/nqueens
common-lisp lisp n-queens n-queens-problem
Last synced: 4 months ago
JSON representation
N-Queens solver in Common Lisp
- Host: GitHub
- URL: https://github.com/james-p-d/nqueens
- Owner: James-P-D
- License: mit
- Created: 2024-01-02T11:33:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-02T11:45:29.000Z (over 1 year ago)
- Last Synced: 2025-01-18T05:32:21.196Z (5 months ago)
- Topics: common-lisp, lisp, n-queens, n-queens-problem
- Language: Common Lisp
- Homepage:
- Size: 3.33 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NQueens
N-Queens solver in Common Lisp
## Introduction
The [N-Queens](https://en.wikipedia.org/wiki/Eight_queens_puzzle) is a simple chess-based problem whereby a player attempts to place `N` queen peices on the board such that no queens share the same row, column or diagonal.
## Running
The program was tested using `clisp` on [CygWin](https://www.cygwin.com/). To run:
```
jdorr@DESKTOP-QPTVA3D ~
$ clisp board.lsp
```You will be prompted to enter the size of board, after which the program will begin to find solutions:
