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 Summary
Constructors Constructor Description Board() -
Method Summary
Modifier and Type Method Description static BoardparseFromFile(String filename)Make a new board by parsing a file.
-
Constructor Details
-
Board
public Board()
-
-
Method Details
-
parseFromFile
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
-