Question: Write a C++ program that reads information from .txt file about Blokus game tiles (tiles) for the game Blokus and outputs a similar file with

Write a C++ program that reads information from .txt file about Blokus game tiles (tiles) for the game Blokus and outputs a similar file with only the unique tiles contained in the input file.

The format of the tiles is a square text box with * indicating the location of the cells, and . filling in the picture but meaning the absense of a cell.

A tile is unique if it is not transformation of translation, rotation, reflection or glide reflection from another tile

Also,

if there is more than one tile in the text box, ignore the text box, and process all valid text boxes in the tileset. 

The textbox is always NxN, separated by blank line

.*** .... .... .... .... .*.. .*.. .*.. 

will output

.*** .... .... .... 

Also

. . . * .

. . . * .

. * . * .

. * * * .

. . . . .

and

. * . . .

. * . . .

. * . * .

. * * * .

. . . . .

are the same

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!