Package nqueens.core

Interface RowSearchOrder

All Known Implementing Classes:
FirstAvailableRowSearchOrder

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

    • selectedNextUnplacedRow

      Optional<Integer> selectedNextUnplacedRow​(QueenLocations 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