Package memory

Class Board

java.lang.Object
memory.Board

public class Board
extends Object
TODO specification Mutable and threadsafe.

PS4 instructions: the specification of static method parseFromFile(String) may not be changed.

  • Constructor Details

  • Method Details

    • parseFromFile

      public static Board parseFromFile​(String filename) throws IOException
      Make a new board by parsing a file.
      Parameters:
      filename - path to a game board file
      Returns:
      a new board with the size and cards from the given file
      Throws:
      IOException - if an error occurs reading or parsing the file