Class Cell

java.lang.Object
javachess.model.Cell

public class Cell extends Object
Class representing a cell on the chessboard. It can either be empty or contain a piece.
  • Constructor Details

    • Cell

      public Cell(Board board)
    • Cell

      public Cell(Piece piece, Board board)
  • Method Details

    • getPiece

      public Piece getPiece()
    • getBoard

      public Board getBoard()
    • setPiece

      public void setPiece(Piece piece)
    • isEmpty

      public boolean isEmpty()
    • toString

      public String toString()
      Overrides:
      toString in class Object