Open emprestes opened 8 years ago
EPIC: #14
Each chess piece has many behaviours when you are playing a match. In this issue, we need to define, to program and to test each piece's behaviour below. Using chessgame.domain.Piece interface, we have:
chessgame.domain.Piece
Piece createBlackKing(Board board)
Piece createBlackQueen(Board board)
Piece createBlackBishop(Board board, BoardPosition position)
Piece createBlackKnight(Board board, BoardPosition position)
Piece createBlackRook(Board board, BoardPosition position)
Piece createBlackPawn(Board board, BoardPosition position)
Piece createWhiteKing(Board board)
Piece createWhiteQueen(Board board)
Piece createWhiteBishop(Board board, BoardPosition position)
Piece createWhiteKnight(Board board, BoardPosition position)
Piece createWhiteRook(Board board, BoardPosition position)
Piece createWhitePawn(Board board, BoardPosition position)
Board getBoard()
PieceColor getColor()
BoardPosition getPosition()
Piece setPosition(BoardPosition position)
Set<BoardPosition> getAvaliablePositions()
boolean canCapture(String position)
boolean canMove(String position)
Piece move(String position)
EPIC: #14
Each chess piece has many behaviours when you are playing a match. In this issue, we need to define, to program and to test each piece's behaviour below. Using
chessgame.domain.Piece
interface, we have:Behaviours:
44
Piece createBlackKing(Board board)
44
Piece createBlackQueen(Board board)
44
Piece createBlackBishop(Board board, BoardPosition position)
44
Piece createBlackKnight(Board board, BoardPosition position)
44
Piece createBlackRook(Board board, BoardPosition position)
44
Piece createBlackPawn(Board board, BoardPosition position)
44
Piece createWhiteKing(Board board)
44
Piece createWhiteQueen(Board board)
44
Piece createWhiteBishop(Board board, BoardPosition position)
44
Piece createWhiteKnight(Board board, BoardPosition position)
44
Piece createWhiteRook(Board board, BoardPosition position)
44
Piece createWhitePawn(Board board, BoardPosition position)
44
Board getBoard()
44
PieceColor getColor()
44
BoardPosition getPosition()
44
Piece setPosition(BoardPosition position)
Set<BoardPosition> getAvaliablePositions()
40 Definition
27 Implementation
boolean canCapture(String position)
boolean canMove(String position)
Piece move(String position)