Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

gcamerli/tetrigen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetrigen

42 (Paris)

Description

tetriminos

Tetrigen is a random tetriminos generator written in C, with the purpose of creating unit test files for 42 fillit project.

Usage

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

[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.

Credits

License

This work is published under the terms of 42 Unlicense.

About

Tetriminos generator for 42 fillit project ⚒️

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published