Skip to content
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

Week 25 (June 21) #28

Open
olufjen opened this issue Jun 21, 2021 · 3 comments
Open

Week 25 (June 21) #28

olufjen opened this issue Jun 21, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@olufjen
Copy link
Owner

olufjen commented Jun 21, 2021

From Week 24:
Creating new facts to the knowledge base based on the opponent's available actions:
For all opponent's actions
Check if there is a ApieceMove available
Find which positions are available (and not removed)
Based on this create new facts: OPPONENTTO(piecename,pos)
From each available position and the type of piece
create new facts: POSSIBLETHREAT(piecename,pos) ???

A bug: Check the black queen available and removed positions.
To make use of opponent agent to determine best strategy

@olufjen
Copy link
Owner Author

olufjen commented Jun 21, 2021

This bug has been solved: 23.06.21
Black queen :
Piece position d8 X, Y (3, 7) bQ d8 QUEEN ActiveName Q
Available positions
Position: d1 W X, Y (3, 0) Occupied by: WhiteQueen
Position: d2 B X, Y (3, 1)
Position: d3 W X, Y (3, 2)
Position: h8 B X, Y (7, 7) Occupied by: BlackRook2
Position: d4 B X, Y (3, 3) Occupied by: WhitePawn4
Position: g8 W X, Y (6, 7) Occupied by: BlackKnight2
Position: d5 W X, Y (3, 4) Occupied by: BlackPawn4
Position: f8 B X, Y (5, 7) Occupied by: BlackBishop2
Position: d6 B X, Y (3, 5)
Position: e8 W X, Y (4, 7) Occupied by: BlackKing
Position: d7 W X, Y (3, 6)
Position: c8 W X, Y (2, 7) Occupied by: BlackBishop1
Position: b8 B X, Y (1, 7) Occupied by: BlackKnight1
Position: a8 W X, Y (0, 7) Occupied by: BlackRook1
Position: f6 B X, Y (5, 5)
Position: e7 B X, Y (4, 6) Occupied by: BlackPawn5
Position: c7 B X, Y (2, 6) Occupied by: BlackPawn3
Position: b6 B X, Y (1, 5)
Position: a5 B X, Y (0, 4)
Position: h4 B X, Y (7, 3)
Position: g5 B X, Y (6, 4)
Removed positions
Position: h8 B X, Y (7, 7) Occupied by: BlackRook2
Position: g8 W X, Y (6, 7) Occupied by: BlackKnight2
Position: d5 W X, Y (3, 4) Occupied by: BlackPawn4
Position: f8 B X, Y (5, 7) Occupied by: BlackBishop2
Position: e8 W X, Y (4, 7) Occupied by: BlackKing
Position: c8 W X, Y (2, 7) Occupied by: BlackBishop1
Position: b8 B X, Y (1, 7) Occupied by: BlackKnight1
Position: a8 W X, Y (0, 7) Occupied by: BlackRook1
Position: e7 B X, Y (4, 6) Occupied by: BlackPawn5
Position: c7 B X, Y (2, 6) Occupied by: BlackPawn3
Position: b6 B X, Y (1, 5)
Position: a5 B X, Y (0, 4)
Position: d1 W X, Y (3, 0) Occupied by: WhiteQueen
Position: d2 B X, Y (3, 1)
Position: d3 W X, Y (3, 2)
Position: d4 B X, Y (3, 3) Occupied by: WhitePawn4
Northwest positions

Northeast positions

Southeast positions
X, Y (4, 6) X, Y (5, 5) X, Y (6, 4) X, Y (7, 3)
Southwest positions
X, Y (2, 6) X, Y (1, 5) X, Y (0, 4)

@olufjen
Copy link
Owner Author

olufjen commented Jun 22, 2021

This bug has been solved: 23.06.21
e7, and c7 missing in removed list:

Piece name BlackQueen
rnbqkb1r/ppp1pppp/11111n11/111p1111/11PP1111/11N11111/PP11PPPP/R1BQKBNR
Piece position d8 X, Y (3, 7) bQ d8 QUEEN ActiveName Q
Available positions
Position: d1 W X, Y (3, 0) Occupied by: WhiteQueen
Position: d2 B X, Y (3, 1)
Position: d3 W X, Y (3, 2)
Position: h8 B X, Y (7, 7) Occupied by: BlackRook2
Position: d4 B X, Y (3, 3) Occupied by: WhitePawn4
Position: g8 W X, Y (6, 7)
Position: d5 W X, Y (3, 4) Occupied by: BlackPawn4
Position: f8 B X, Y (5, 7) Occupied by: BlackBishop2
Position: d6 B X, Y (3, 5)
Position: e8 W X, Y (4, 7) Occupied by: BlackKing
Position: d7 W X, Y (3, 6)
Position: c8 W X, Y (2, 7) Occupied by: BlackBishop1
Position: b8 B X, Y (1, 7) Occupied by: BlackKnight1
Position: a8 W X, Y (0, 7) Occupied by: BlackRook1
Position: f6 B X, Y (5, 5) Occupied by: BlackKnight2
Position: e7 B X, Y (4, 6) Occupied by: BlackPawn5
Position: c7 B X, Y (2, 6) Occupied by: BlackPawn3
Position: b6 B X, Y (1, 5)
Position: a5 B X, Y (0, 4)
Position: h4 B X, Y (7, 3)
Position: g5 B X, Y (6, 4)
Removed positions
Position: h8 B X, Y (7, 7) Occupied by: BlackRook2
Position: d5 W X, Y (3, 4) Occupied by: BlackPawn4
Position: f8 B X, Y (5, 7) Occupied by: BlackBishop2
Position: e8 W X, Y (4, 7) Occupied by: BlackKing
Position: c8 W X, Y (2, 7) Occupied by: BlackBishop1
Position: b8 B X, Y (1, 7) Occupied by: BlackKnight1
Position: a8 W X, Y (0, 7) Occupied by: BlackRook1
Position: g5 B X, Y (6, 4)
Position: h4 B X, Y (7, 3)
Position: f6 B X, Y (5, 5) Occupied by: BlackKnight2
Position: b6 B X, Y (1, 5)
Position: a5 B X, Y (0, 4)
Position: g8 W X, Y (6, 7)
Position: d1 W X, Y (3, 0) Occupied by: WhiteQueen
Position: d2 B X, Y (3, 1)
Position: d3 W X, Y (3, 2)
Position: d4 B X, Y (3, 3) Occupied by: WhitePawn4
Northwest positions

Northeast positions

Southeast positions
X, Y (4, 6) X, Y (5, 5) X, Y (6, 4) X, Y (7, 3)
Southwest positions
X, Y (2, 6) X, Y (1, 5) X, Y (0, 4)

@olufjen olufjen changed the title Week 25 (June 25) Week 25 (June 21) Jun 23, 2021
@olufjen
Copy link
Owner Author

olufjen commented Jun 23, 2021

This is a "no issue".
When looking at the files produced by the preferredmove processor, the removed positions are correct:
Checking additional removals For WhiteBishop2
Move: Move
Piece Piece position d3 X, Y (3, 2) wB d3 BISHOP ActiveName B
Available positions
Position: c4 W X, Y (2, 3)
Position: b5 W X, Y (1, 4)
Position: a6 W X, Y (0, 5) Occupied by: BlackPawn1
Position: f1 W X, Y (5, 0)
Position: e2 W X, Y (4, 1)
Position: e4 W X, Y (4, 3)
Position: f5 W X, Y (5, 4)
Position: g6 W X, Y (6, 5)
Position: h7 W X, Y (7, 6) Occupied by: BlackPawn8
Position: c2 W X, Y (2, 1)
Position: b1 W X, Y (1, 0)
Removed positions
Northwest positions
X, Y (2, 3) X, Y (1, 4) X, Y (0, 5)
Northeast positions
X, Y (4, 3) X, Y (5, 4) X, Y (6, 5) X, Y (7, 6)
Southeast positions
X, Y (4, 1) X, Y (5, 0)
Southwest positions
X, Y (2, 1) X, Y (1, 0)
From position d3 Color W Piece no.chess.web.model.ChessPiece Ontology name WhiteBishop2
Chesspiece position d3
Piece active: true true gamepiece null

To position h7 Color W Piece no.chess.web.model.ChessPiece Ontology name BlackPawn8

Black bishop 2 finds white pawn at h2:
But this position is not removed (which is correct):
Piece position d6 X, Y (3, 5) bB d6 BISHOP ActiveName B
Available positions
Position: e5 B X, Y (4, 4)
Position: e7 B X, Y (4, 6)
Position: f8 B X, Y (5, 7)
Position: c5 B X, Y (2, 4)
Position: b4 B X, Y (1, 3)
Position: a3 B X, Y (0, 2)
Position: c7 B X, Y (2, 6) Occupied by: BlackPawn3
Position: b8 B X, Y (1, 7) Occupied by: BlackKnight1
Position: h2 B X, Y (7, 1) Occupied by: WhitePawn8
Position: g3 B X, Y (6, 2)
Position: f4 B X, Y (5, 3)
Removed positions
Position: c7 B X, Y (2, 6) Occupied by: BlackPawn3
Position: b8 B X, Y (1, 7) Occupied by: BlackKnight1
Northwest positions
X, Y (2, 6) X, Y (1, 7)
Northeast positions
X, Y (4, 6) X, Y (5, 7)
Southeast positions
X, Y (4, 4) X, Y (5, 3) X, Y (6, 2) X, Y (7, 1)
Southwest positions
X, Y (2, 4) X, Y (1, 3) X, Y (0, 2)

While white bishop 2 finds black pawn at a6, and removes the position:
Piece position d3 X, Y (3, 2) wB d3 BISHOP ActiveName B
Available positions
Position: c4 W X, Y (2, 3)
Position: b5 W X, Y (1, 4)
Position: a6 W X, Y (0, 5) Occupied by: BlackPawn1
Position: f1 W X, Y (5, 0) Occupied by: WhiteRook2
Position: e2 W X, Y (4, 1)
Position: e4 W X, Y (4, 3)
Position: f5 W X, Y (5, 4)
Position: g6 W X, Y (6, 5)
Position: h7 W X, Y (7, 6) Occupied by: BlackPawn8
Position: c2 W X, Y (2, 1)
Position: b1 W X, Y (1, 0)
Removed positions
Position: a6 W X, Y (0, 5) Occupied by: BlackPawn1
Position: h7 W X, Y (7, 6) Occupied by: BlackPawn8

Northwest positions
X, Y (2, 3) X, Y (1, 4) X, Y (0, 5)
Northeast positions
X, Y (4, 3) X, Y (5, 4) X, Y (6, 5) X, Y (7, 6)
Southeast positions
X, Y (4, 1) X, Y (5, 0)
Southwest positions
X, Y (2, 1) X, Y (1, 0)

@olufjen olufjen added the enhancement New feature or request label Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant