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

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

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

    Methods in edu.wisc.game.engine that return Board
    Modifier and Type | Method | Description
    --- | --- | ---
    `Board` | StalemateTester.`canStalemate​(Piece.Shape[] shapes, Piece.Color[] colors, String[] allImages)` | Is there any board composed of any pieces of the specified colors and shapes on which this rule set will stalemate? As always, we assume that all atoms in the rules are "non-disappearing", i.e.

    Methods in edu.wisc.game.engine with parameters of type Board
    Modifier and Type | Method | Description
    --- | --- | ---
    `static boolean` | BoardConditionsChecker.`boardIsAcceptable​(Board board, RuleSet rules, boolean testing)` |

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

    Methods in edu.wisc.game.rest that return Board
    Modifier and Type | Method | Description
    --- | --- | ---
    `Board` | GameService.`getBoard​(String id)` | Gets a Board object by ID
    `Board` | NewEpisodeWrapper.`getBoard()` |
    `Board` | GameService.`getBoard1()` |
    `Board` | GameService.`getBoard2()` |
    `Board` | GameService.`saveBoard​(Board b)` |

    Methods in edu.wisc.game.rest that return types with arguments of type Board
    Modifier and Type | Method | Description
    --- | --- | ---
    `Vector<Board>` | BoardDisplayService.BoardList.`getBoards()` |

    Methods in edu.wisc.game.rest with parameters of type Board
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | BoardDisplayService.BoardList.`addBoard​(Board c)` |
    `static String` | BoardDisplayService.`doBoard​(Board board, int cellWidth)` | Given a Board object, creates an HTML snippet containing a visual display of the board.
    `static String` | BoardDisplayService.`doBoardAscii​(Board board)` | The ASCII-art alternative
    `Board` | GameService.`saveBoard​(Board b)` |
    `void` | NewEpisodeWrapper.`setBoard​(Board _b)` |

    Method parameters in edu.wisc.game.rest with type arguments of type Board
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | BoardDisplayService.BoardList.`setBoards​(Vector<Board> _boards)` |

  - ### Uses of Board in edu.wisc.game.saved

    Methods in edu.wisc.game.saved that return types with arguments of type Board
    Modifier and Type | Method | Description
    --- | --- | ---
    `static HashMap<String,​Board>` | BoardManager.`readBoardFile​(File f, HashMap<String,​Boolean> useImagesTable)` | Reads a CSV file into which a number of boards have been written by Board.saveToFile().

    Methods in edu.wisc.game.saved with parameters of type Board
    Modifier and Type | Method | Description
    --- | --- | ---
    `static void` | BoardManager.`saveToFile​(Board b, String pid, String eid, File f)` |

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

    Fields in edu.wisc.game.sql declared as Board
    Modifier and Type | Field | Description
    --- | --- | ---
    `Board` | Game.`initialBoard` | Only if fixed; null if random

    Methods in edu.wisc.game.sql that return Board
    Modifier and Type | Method | Description
    --- | --- | ---
    `Board` | Episode.Display.`getBoard()` | What pieces are on the board now, and what pieces have been removed
    `Board` | Episode.`getCurrentBoard()` | Shows the current board (without removed [dropped] pieces)
    `Board` | Episode.`getCurrentBoard​(boolean showRemoved)` | Returns the current board, or, on a restored-from-SQL-server episodes, null (or empty board, to keep the client from crashing).
    `Board` | EpisodeInfo.`getCurrentBoard()` | Shows the current board (including dropped pieces, which are labeled as such)
    `static Board` | Board.`readBoard​(File f)` | Reads a board description from a JSON file
    `static Board` | Board.`readBoard​(Reader r)` |
    `static Board` | Board.`readBoardFromString​(String jsonText)` |

    Methods in edu.wisc.game.sql with parameters of type Board
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | Episode.Display.`setBoard​(Board _b)` |
    `void` | Piece.`setBoard​(Board _board)` |

    Constructors in edu.wisc.game.sql with parameters of type Board
    Constructor | Description
    --- | ---
    `Game​(RuleSet _rules, Board _initialBoard)` |