42 (Paris)
Tetrigen is a random tetriminos generator written in C, with the purpose of creating unit test files for 42 fillit project.
To build:
$ make
To execute:
$ ./tetrigen [option 1] [option 2] [number]
Example:
$ ./tetrigen -v -f 26
The output of this example will be a valid file of 26 tetriminos saved in test.fillit.
[options #1]
- -v: valid map
- -i: invalid map
[options #2]
- -f: write the map in a file (test.fillit)
- -s: send the map directly to the stdin
[number]
- Select between 1 and 26 tetriminos per file.
This work is published under the terms of 42 Unlicense.