## Uses of Class
edu.wisc.game.sql.Piece

- Packages that use Piece
  Package | Description
  --- | ---
  edu.wisc.game.engine | Top-level Game Server code
  edu.wisc.game.rest | The RESTful web API
  edu.wisc.game.sql | Persistent data structures

- - ### Uses of Piece in edu.wisc.game.engine

    Methods in edu.wisc.game.engine with parameters of type Piece
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | RuleSet.Atom.`acceptsColorShapeAndProperties​(Piece p, Expression.VarMap2 varMap)` | Does this atom accept a specified piece, based on its shape, color, and (in GS3+) any other properties? Since GS5, the "code:" field of the atom is also taken into account.

    Method parameters in edu.wisc.game.engine with type arguments of type Piece
    Modifier and Type | Method | Description
    --- | --- | ---
    `static void` | PostOrder.`applyPostPosToAcceptanceMap​(RuleSet rules, RuleSet.Row atoms, Vector<Piece> values, BitSet[][] jAcceptanceMap)` | When an Order is applied not to the entire board, but only to the pieces that are acceptable based on all other criteria.

  - ### Uses of Piece in edu.wisc.game.rest

    Methods in edu.wisc.game.rest that return Piece
    Modifier and Type | Method | Description
    --- | --- | ---
    `Piece` | GameService.`getPiece1()` |
    `Piece` | GameService.`getPiece2()` |

  - ### Uses of Piece in edu.wisc.game.sql

    Methods in edu.wisc.game.sql that return Piece
    Modifier and Type | Method | Description
    --- | --- | ---
    `Piece[]` | Board.`asBoardPieces()` | Produces an array of pieces with N*N elements, with nulls for empty cells.

    Methods in edu.wisc.game.sql that return types with arguments of type Piece
    Modifier and Type | Method | Description
    --- | --- | ---
    `Vector<Piece>` | Board.`getValue()` |
    `Vector<Piece>` | Episode.`getValues()` |

    Methods in edu.wisc.game.sql with parameters of type Piece
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | Board.`addPiece​(Piece c)` |
    `void` | Board.`removePiece​(Piece c)` |

    Method parameters in edu.wisc.game.sql with type arguments of type Piece
    Modifier and Type | Method | Description
    --- | --- | ---
    `static String` | Episode.`graphicDisplayAscii​(Vector<Piece> values, Episode.Pick lastMove, boolean weShowAllMovables, boolean[] isJMoveable, boolean html)` | Retired from the web game server; still used in Captive Game Server.
    `static String` | HtmlDisplay.`htmlDisplay​(Vector<Piece> pieces, Episode.Pick lastMove, boolean weShowAllMovables, boolean[] isJMoveable, int cellWidth, boolean canMove)` |
    `static BitSet` | Episode.`onBoard​(Vector<Piece> values)` |
    `void` | Board.`setValue​(Vector<Piece> _value)` |

    Constructors in edu.wisc.game.sql with parameters of type Piece
    Constructor | Description
    --- | ---
    `BucketVarMap2​(Piece p, int bucketNo)` |
    `Move​(Piece _piece, int b)` |

    Constructor parameters in edu.wisc.game.sql with type arguments of type Piece
    Constructor | Description
    --- | ---
    `Board​(Vector<Piece> pieces, Vector<Piece> removedPieces, BitSet[] moveableTo)` | Creates a Board object to be sent out (as JSON) to the player's client, based on the current state of the episode.