public class

NQueens

extends Object
java.lang.Object
   ↳ es.usc.citius.hipster.examples.problem.NQueens

Class Overview

General N-Queens problem. The goal is to place N-Queens in a N-Chess Board without any queen attacking each other.

There is a good description of the problem in Peter Alfeld's Web Page (University of Utah)

Summary

Public Constructors
NQueens(int size)
NQueens(int[] queens)
Public Methods
int attackedQueens()
boolean equals(Object o)
int[] getQueens()
int hashCode()
boolean isAttacked(int row, int column)
boolean isAttacked(int row)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public NQueens (int size)

public NQueens (int[] queens)

Public Methods

public int attackedQueens ()

public boolean equals (Object o)

public int[] getQueens ()

public int hashCode ()

public boolean isAttacked (int row, int column)

public boolean isAttacked (int row)

public String toString ()