-
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
Until week 32 (August 9) Planning strategies part 2 #30
Comments
The bug behind this comment has been corrected. (02.08.21) From probepossebilities and choose strategy: WhiteBishop2e2g4 WhiteBishop2e2h5 WhiteBishop2e2d1 WhiteBishop2e2d3 WhiteBishop2e2c4 WhiteBishop2e2b5 This produces wrong results because we are using an existing action. |
Solved: occupies(WhiteRook2,f1) |
Solved: |
The full knowledge base contains the
occupies(WhiteBishop2,d3), - the position the bishop currently occupies
while the temporary knowledge base contains
occupies(WhiteBishop2,e2)
REACHABLE(WhiteBishop2e2,g4)
REACHABLE(WhiteBishop2e2,h5)
REACHABLE(WhiteBishop2e2,d3)
REACHABLE(WhiteBishop2e2,c4)
REACHABLE(WhiteBishop2e2,b5)
REACHABLE(WhiteBishop2e2,a6)
occupies(WhiteBishop2,e4)
The temporary knowledge base also contains the positions the opponent pieces occupy and where they may move to.
Then the chooseStrategy method must find the next possible best move based on these facts.
The player has a set of possible actions available.
Given the piecename of this action, then
check which positions this piece can occupy, check which positions are reachable from this new position.
Then check any opponent pieces that can be taken by this piece given its reachable positions and what positions the opponent pieces are occupying.
Given the planning strategies of week 26:
Then find which opponent pieces I can take.
And find which of my own pieces I protect
The text was updated successfully, but these errors were encountered: