Package webb.shared.dtos.old
Class PuzzleDTO_OLD
java.lang.Object
webb.shared.dtos.old.PuzzleDTO_OLD
Deprecated.
Represents a puzzle from the JSON file.
Modified from: https://cs.plu.edu/courses/protected/cs390/2023s/project/iteration2.html
-
Method Summary
Modifier and TypeMethodDescriptionstatic PuzzleDTO_OLDDeprecated.Creates a PuzzleDTO from a JSON fileintDeprecated.intDeprecated.Deprecated.Deprecated.intDeprecated.toString()Deprecated.
-
Method Details
-
getRegions
Deprecated.- Returns:
- the regions of the puzzle as a list of Cells
-
getSolution
Deprecated.- Returns:
- the solution to the puzzle as a list of Cells
-
getGridSize
public int getGridSize()Deprecated.- Returns:
- the size of the grid
-
getNumStars
public int getNumStars()Deprecated.- Returns:
- the number of stars per region
-
getTotalStars
public int getTotalStars()Deprecated.- Returns:
- the total number of stars in the puzzle
-
fromJSON
Deprecated.Creates a PuzzleDTO from a JSON file- Parameters:
jsonFile- the JSON file- Returns:
- the PuzzleDTO object
- Throws:
IOException- if the file cannot be read
-
toString
Deprecated.
-