Uses of Class
at.jku.ssw.fp.sect04_3.puzzle.Pos
-
Packages that use Pos Package Description at.jku.ssw.fp.sect03_3 at.jku.ssw.fp.sect04_3.puzzle -
-
Uses of Pos in at.jku.ssw.fp.sect03_3
Methods in at.jku.ssw.fp.sect03_3 that return types with arguments of type Pos Modifier and Type Method Description (package private) static Optional<FList<Pos>>
Demo2_NQueens. solveNQueens(FList<Pos> board, int col)
Solves N-Queens problem using immutable listsMethod parameters in at.jku.ssw.fp.sect03_3 with type arguments of type Pos Modifier and Type Method Description private static boolean
Demo2_NQueens. isSafe(FList<Pos> board, int row, int col)
Checks if position is safe for setting queen.private static void
Demo2_NQueens. print(FList<Pos> board)
Prints the board.(package private) static Optional<FList<Pos>>
Demo2_NQueens. solveNQueens(FList<Pos> board, int col)
Solves N-Queens problem using immutable lists -
Uses of Pos in at.jku.ssw.fp.sect04_3.puzzle
Fields in at.jku.ssw.fp.sect04_3.puzzle declared as Pos Modifier and Type Field Description Pos
Move. from
the from positionPos
Move. to
the to positionMethods in at.jku.ssw.fp.sect04_3.puzzle that return Pos Modifier and Type Method Description Pos
Puzzle. getEmptyPos()
Gets the position which is empty.static Pos
Pos. of(int row, int col)
Creats a position.Methods in at.jku.ssw.fp.sect04_3.puzzle with parameters of type Pos Modifier and Type Method Description int
Puzzle. get(Pos pos)
Gets the number at the current position.boolean
Pos. isNeighbor(Pos other)
Tests if the given position is a neighbor of this positionstatic Move
Move. of(Pos from, Pos to)
Creates a move from a position to a positionConstructors in at.jku.ssw.fp.sect04_3.puzzle with parameters of type Pos Constructor Description Move(Pos from, Pos to)
Private constructor.
-