Skip to content

Knight minimum steps chess#2

Merged
albero94 merged 4 commits into
masterfrom
knight-minimum-steps-chess
Mar 17, 2019
Merged

Knight minimum steps chess#2
albero94 merged 4 commits into
masterfrom
knight-minimum-steps-chess

Conversation

@albero94

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread src/test/java/edu/gwu/csci6212/MinimumStepsChessKnightTest.java Outdated
Comment thread src/main/java/edu/gwu/csci6212/MinimumStepsChessKnight.java Outdated
Comment thread src/main/java/edu/gwu/csci6212/MinimumStepsChessKnight.java Outdated
Comment thread src/main/java/edu/gwu/csci6212/MinimumStepsChessKnight.java Outdated
Comment thread src/main/java/edu/gwu/csci6212/MinimumStepsChessKnight.java Outdated
Comment thread src/main/java/edu/gwu/csci6212/MinimumStepsChessKnight.java Outdated
Comment thread src/main/java/edu/gwu/csci6212/MinimumStepsChessKnight.java Outdated
Comment thread src/test/java/edu/gwu/csci6212/MinimumStepsChessKnightTest.java Outdated
Comment thread src/test/java/edu/gwu/csci6212/MinimumStepsChessKnightTest.java Outdated
Comment thread src/test/java/edu/gwu/csci6212/MinimumStepsChessKnightTest.java Outdated

@bushidocodes bushidocodes left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if you have any questions. I'll need to re-review once these are addressed because I don't yet funny understand the algorithm yet.

OutOfBounds function renamed from outOfBoard.

Return -1 value if OutOfBounds start/goal.

Return 0 value if knight is in the goal position.

Return number of steps for the rest of scenarios.

Use isInsideLimits to dry up the code.

Use JUnit assertions for testing Name the test functions in a more verbose way.

Rename setupBoard to startGame
Comment thread src/main/java/edu/gwu/csci6212/MinimumStepsChessKnight.java Outdated
Comment thread src/main/java/edu/gwu/csci6212/MinimumStepsChessKnight.java Outdated

@bushidocodes bushidocodes left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good to Me! (LGTM)

@albero94 albero94 merged commit a872413 into master Mar 17, 2019
@albero94 albero94 deleted the knight-minimum-steps-chess branch March 17, 2019 20:42
bushidocodes added a commit that referenced this pull request Jun 20, 2026
Adds an explicit `permissions: contents: read` block to satisfy the
principle of least privilege and resolve CodeQL alert #2.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants