PuzzleParserT Class
Reads puzzles from a file.
Each puzzle is encoded in the following way:
- I (identifier) B/W (black/white) puzzleNumber
- R (reward) scoretetromino (O1/O2/I2/I3/I4/L2/L3/Z/T)
- five rows starting with P encoding the puzzle; # = filled cell, . = empty cell
The puzzle color and puzzle number together uniquely identify the file in which the puzzle image is stored.
The order of the lines doesn't matter and there can be an arbitrary number of lines not starting with a special character scattered throughout the puzzle definition.
This however isn't recommended as it makes the file harder to read for humans.
I B 13
R 5 O1
P ##..#
P ....#
P #....
P #....
P #..##
This example encodes a black puzzle with number 13, reward of 5 points and
O1 tetromino.