From 25a889e66cf4a1242ba4094e6be563d6d8c39f6d Mon Sep 17 00:00:00 2001 From: Jacob McKay Date: Thu, 29 Jan 2026 17:14:57 -0700 Subject: [PATCH 1/2] Update Javadoc comments ChessGame.java For accuracy, clarity, and grammar --- shared/src/main/java/chess/ChessGame.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shared/src/main/java/chess/ChessGame.java b/shared/src/main/java/chess/ChessGame.java index e5ed9e9..ec2c929 100644 --- a/shared/src/main/java/chess/ChessGame.java +++ b/shared/src/main/java/chess/ChessGame.java @@ -3,7 +3,7 @@ import java.util.Collection; /** - * For a class that can manage a chess game, making moves on a board + * A class that can manage a chess game, making moves on a board *

* Note: You can add to this class, but you may not alter * signature of the existing methods. @@ -22,7 +22,7 @@ public TeamColor getTeamTurn() { } /** - * Set's which teams turn it is + * Sets which teams turn it is * * @param team the team whose turn it is */ @@ -39,7 +39,7 @@ public enum TeamColor { } /** - * Gets a valid moves for a piece at the given location + * Gets all valid moves for a piece at the given location * * @param startPosition the piece to get valid moves for * @return Set of valid moves for requested piece, or null if no piece at @@ -50,7 +50,7 @@ public Collection validMoves(ChessPosition startPosition) { } /** - * Makes a move in a chess game + * Makes a move in the chess game * * @param move chess move to perform * @throws InvalidMoveException if move is invalid @@ -91,7 +91,7 @@ public boolean isInStalemate(TeamColor teamColor) { } /** - * Sets this game's chessboard with a given board + * Sets this game's chessboard to a given board * * @param board the new board to use */ From d095a3637b139f43088be43e6d41a4a236446b60 Mon Sep 17 00:00:00 2001 From: Jacob McKay Date: Thu, 29 Jan 2026 17:15:31 -0700 Subject: [PATCH 2/2] Update Javadoc comment in ChessPosition.java For accuracy --- shared/src/main/java/chess/ChessPosition.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/main/java/chess/ChessPosition.java b/shared/src/main/java/chess/ChessPosition.java index 5ea43e0..9fd3bf2 100644 --- a/shared/src/main/java/chess/ChessPosition.java +++ b/shared/src/main/java/chess/ChessPosition.java @@ -21,7 +21,7 @@ public int getRow() { /** * @return which column this position is in - * 1 codes for the left row + * 1 codes for the left column */ public int getColumn() { throw new RuntimeException("Not implemented");