Package nqueens.core

Interface RowSearchAlgorithm

All Known Implementing Classes:
FirstAvailableRowSearchAlgorithm

public interface RowSearchAlgorithm
Author:
Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
  • Method Summary

    Modifier and Type Method Description
    java.util.Optional<java.lang.Integer> selectedNextUnplacedRow​(ImmutableQueenLocations queenLocations)
    Given a specified queenLocations, return an available row.
  • Method Details

    • selectedNextUnplacedRow

      java.util.Optional<java.lang.Integer> selectedNextUnplacedRow​(ImmutableQueenLocations queenLocations)
      Given a specified queenLocations, return an available row. If no row is available, Optional.empty() is returned.
      Parameters:
      queenLocations - the specified board
      Returns:
      an available row, if one exists