emprestes/chessgame

Definition of Piece's behaviour.

Opened this issue · 0 comments

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)