-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Game strategies from week 1 2022 #37
Comments
When moving White Bishop 2 to d3: Chosen action Possible move Move To position c4 Color W Direction NONE sumdif 6 Piece None false Friendly false gamepiece Gamenone |
The following game: Chosen action Schema occupies(WhitePawn3,c4) occupies(WhitePawn3,c5) The initial state is "wrong" because it uses the symbolic name REACHABLE !!! |
When Problem is created: The fluents of the goal state And then when it returns with a plan from the Chess Search algorithm:: Returns with a plan: The fluents of end outcome: occupies(WhitePawn3,c4) occupies(WhitePawn3,c5) |
An Action Schema is applicable if the preconditions are satisfied by the initial state.
(see p. 368)
In addition, for the search algorithm to return with a plan then the fluents of the goal state must all be present among the fluents of the outcome. As shown on p. 369:
The problem is solved when we can find a sequence of actions that end in a state s that entails the goal.
This is expressed in the sentence:
if (outcome.getFluents().containsAll(problem.getGoalState().getFluents())) {
In the Chess Search Algorithm.
Make sure that an Action Schema contains a PROTECTED precondition in order to be chosen.
There is an initial and goal state for every action schema and chess action available.
If the chess search algorithm does not return with a plan, try again with another Chess Problem with a different initial and goal state?
The text was updated successfully, but these errors were encountered: