Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
tolstenko committed Jul 14, 2023
2 parents 581d224 + 9fb64a6 commit 822e59a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/chess/pieces/Knight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ unordered_set<Point2D> Knight::AttackMoves(WorldState& world, const Point2D& ori

unordered_set<Point2D> moves;

vector<Point2D> const deltas = {{-1, 2}, {1, 2}, {-2, 1}, {-2, 1}, {-2, -1}, {-2, -1}, {-1, -2}, {1, -2}};
vector<Point2D> const deltas = {{-1, 2}, {1, 2}, {-2, 1}, {2, 1}, {-2, -1}, {2, -1}, {-1, -2}, {1, -2}};
for (auto delta : deltas) {
auto sum = delta + origin;
auto other = world.PieceAtPosition(sum);
Expand Down

0 comments on commit 822e59a

Please sign in to comment.