Git Product home page Git Product logo

fillit_42school's Introduction

Fillit_42school

The project assembles a given Tetriminos set altogether in the smallest possible square.

Usage

There are two folders: srcs with all the c-files needed for the project and includes with the header file.

So, your steps: Clone the repository

git clone https://github.com/VladlenaSkubi-du/Fillit_42school.git [folder's name you want] 

Get into it and compile the project:

cd [folder's name you want]
git submodule add https://github.com/VladlenaSkubi-du/libft_42school.git libft
make

Test with the test files from the folder (you can also create your own test files):

./fillit 

NOTE: The program works only with one testing file that are (from the folder):

invalid
invalid1 

The output will be "error" because of the wrong Tetriminos. And for:

test
test_full

The output will be the smallest possible square with all the Tetriminos named with letters.

Go and try. Good luck!

The function returns

The program displays the smallest assembled square on the standard output. To identify each Tetrimino in the square solution, there is a capital letter assigned to each Tetrimino, starting with โ€™Aโ€™ and increasing for each new Tetrimino.

The file with Tetriminos should contain between 1 and 26 Tetriminos. The description of a Tetriminos must respect the following rules :

  1. Precisely 4 lines of 4 characters, each followed by a new line (well... a 4x4 square)
  2. A Tetrimino is a classic piece of Tetris composed of 4 blocks
  3. Each character must be either a block character(โ€™#โ€™ ) or an empty character (โ€™.โ€™)
  4. Each block of a Tetrimino must touch at least one other block on any of his 4 sides (up, down, left and right)

Grade

125/100

fillit_42school's People

Contributors

vladlenaskubi-du avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.