Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

FederAndInk/Queen_Problem

Open more actions menu

Repository files navigation

Queen problem

Problem

  • Is it possible to put 8 chess queens on a 8x8 chess?
  • if yes, is there other solutions? How many?
  • is it possible on different board size (4x4, 10x10, 3x3...) to have a solution?

features

  • Can place and remove queen manually
  • Pretty Command line with colors (zoom your terminal !)
  • Showing queen view
  • true chessboard coordinate !
  • Can solve the problem (backtracking)

screenshot of the program screenshot of the program

Compilation

Note:

  • Linux terminal like (with UTF-8 support) only for now (because of the colors)
  • Can work on windows (I think) if you get a Linux terminal (to support ANSI colors)
  • requires boost (algorithm/string)

Using cmake :)

  1. mkdir build
  2. cd build
  3. cmake ..
  4. make
  5. launch: ./build/queen_problem
  6. enjoy !

About

Terminal implementation of the queen problem (place 8 chess queens on a 8x8 chessboard, none of them must see another one)

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.