This is part that parses the individual regions, extracts their information and then instantiates puzzle pieces from the information. I have chosen to decompose this process into two parts and assigned them member functions.
In principle, one could merge the two so that only a single loop is done.
I have elected to forego that joint computation. It is worth whatever cons might exist. Modern computing shouldn't care so much.
[x] Complete the coding
[x] Complete the documentation for the code.
[x] Simple test should be able to use the shapes testing data to demonstrate extraction of a puzzle board.
This is part that parses the individual regions, extracts their information and then instantiates puzzle pieces from the information. I have chosen to decompose this process into two parts and assigned them member functions.
In principle, one could merge the two so that only a single loop is done.
I have elected to forego that joint computation. It is worth whatever cons might exist. Modern computing shouldn't care so much.