Skip to content

Solving 8 queen puzzle in ruby using iterative repair algorithm (n queens in a n*n board)

Notifications You must be signed in to change notification settings

KouroshAlinaghi/8-queen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

8-Queen Puzzle Using iterative repair algorithm

Usage

Create a new Board instance and call Board#solve on the instance.

Board.new(board_length)

For example:

board = Board.new(8, required_answers: 2, filled_character: "Q")
board.solve

Todos:

  • Make it faster.
  • Clean code.
  • Found other solutions.
  • Write a small document and usage in README

About

Solving 8 queen puzzle in ruby using iterative repair algorithm (n queens in a n*n board)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages