ai :: BacktrackProblem :: is_goal
Once a goal state is found, the solver is automatically stopped. See BacktrackSolver.run.
BacktrackSolver.run
# Is the state a goal state? # Once a goal state is found, the solver is automatically stopped. # See `BacktrackSolver.run`. fun is_goal(state: S): Bool is abstract
# Are all rows are occupied? redef fun is_goal(rows) do return rows.length >= size