Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions shared/src/main/java/chess/ChessGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
* <p>
* Note: You can add to this class, but you may not alter
* signature of the existing methods.
Expand All @@ -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
*/
Expand All @@ -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
Expand All @@ -50,7 +50,7 @@ public Collection<ChessMove> 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
Expand Down Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion shared/src/main/java/chess/ChessPosition.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down