Is the state a goal state?

Once a goal state is found, the solver is automatically stopped. See BacktrackSolver.run.

Property definitions

ai $ BacktrackProblem :: is_goal
	# 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
lib/ai/backtrack.nit:69,2--72,40

ai $ QueenProblem :: is_goal
	# Are all rows are occupied?
	redef fun is_goal(rows) do return rows.length >= size
lib/ai/examples/queens.nit:97,2--98,54