Package nqueens.lab
Class FirstAvailableRowSearchOrder
java.lang.Object
nqueens.lab.FirstAvailableRowSearchOrder
- All Implemented Interfaces:
RowSearchOrder
- Author:
- __STUDENT_NAME__, Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionselectedNextUnplacedRow(QueenLocations queenLocations)Given a specified queenLocations, return an available row.
-
Constructor Details
-
FirstAvailableRowSearchOrder
public FirstAvailableRowSearchOrder()
-
-
Method Details
-
selectedNextUnplacedRow
Description copied from interface:RowSearchOrderGiven a specified queenLocations, return an available row. If no row is available, Optional.empty() is returned.- Specified by:
selectedNextUnplacedRowin interfaceRowSearchOrder- Parameters:
queenLocations- the specified board- Returns:
- an available row, if one exists
-