Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 766 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 766 Bytes

N Queens Visualization

Uses Java Swing GUI to show a visualization of 8 Queens problem using backtracking algorithm. Screen Shot 2020-02-26 at 2 47 08 PM

What is a Queen and how does it move?

A Queen is a chess piece, it moves on a chess board. It is able to move up, down, left, right or on a diagonal. This means that any queen that is on the same row, column or diagonal is able to be attacked.

What is a solution?

A board is solved when there are N Queens placed on the board in such a way that none of the Queens can attack each-other.

How to run:

1.) Compile program using JDK compiler
2.) Run from command line