- Clone this repo
- In folder compile using:
make
- Run the program using:
./program <param>- Only 'wolf' and 'mickey' are allowed params
The folders contain two different types of ascii art drawings. These folders contain files named “part_x_y_name.txt” these are 30x30 character parts of ASCII-drawings. That is, the asci-art is split into 30 by 30 squares of characters, and need to be puzzled together.
To accomplsh the merge of the files i need to read one row at the time and append a "\n" at the end of every merged row. When i'm done with the first row of 3xfiles i need to move on to the next row of files until all rows are read.
The Wolf constists of a grid of 3x5 files. The grid below represents files in this format:
- part_x_y_wolf.txt
| Column 1 | Column 2 | Column 3 | |
|---|---|---|---|
| Row 1 | 0_0 | 1_0 | 2_0 |
| Row 2 | 0_1 | 1_1 | 2_1 |
| Row 3 | 0_2 | 1_2 | 2_2 |
| Row 4 | 0_3 | 1_3 | 2_3 |
| Row 5 | 0_4 | 1_4 | 2_4 |
The Mickey constists of a grid of 3x2 files. The grid below represents files in this format:
- part_x_y_mickey.txt
| Column 1 | Column 2 | Column 3 | |
|---|---|---|---|
| Row 1 | 0_0 | 1_0 | 2_0 |
| Row 2 | 0_1 | 1_1 | 2_1 |