queensproblembitarraysolver

package
v0.0.0-...-c0abff7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(board ba.BitArray, sideLength byte, w io.Writer)

Print prints the given chess board to the given writer

Types

type Result

type Result struct {
	Solutions       []ba.BitArray
	CalculationTime time.Duration
}

Result represents the result of the search for solutions to an n queens problem

func FindSolutions

func FindSolutions(sideLength byte) Result

FindSolutions finds all solutions of the queens problem on a chess board with the given side length

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL