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

https://github.com/catap/scalac-chess-problem


https://github.com/catap/scalac-chess-problem

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# scalac-chess-problem
This prue functional scala application found all unique chess board where no one piece don't threaten to any another peaces.

For run use `sbt run`

Example output:
```
Solving the problem: 7×7 board with 2 Kings, 2 Queens, 2 Bishops and 1 Knight
Ok, done.
Elapsed time 0 min, 1 sec, 697 millis (total 1697 millis)
I have 3063828 solutions. No more 3 of them follow:
♘**-***
--*--**
-*****♗
*-*****
*****♕*
**♕****
♗***♔*♔

-**♘***
-**--**
--****♗
*-*****
*****♕*
**♕****
♗***♔*♔

-**-***
♘-*--**
--****♗
*******
*****♕*
**♕****
♗***♔*♔
```