Skip to content

jdsmith022/fillit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fillit

gif

Codam Coding College project filllit

Cohort January 2019

fillit is the fourth project completed at Codam. The purpose of fillit is to become familiarize with a recurring problematic in programming: searching for the optimal solution among a huge set of possibilities in a respectable amount of time. In this project, the objective was to find a way to a given Tetriminos set in the smallest possible square and each tetrimino is placed on their most upper-left position.

For a full explaination of the project in pdf form, including rules and examples of correct solutions, please click here.

Prerequities

This program was written on LinuxOS and complies with a Makefile.

Installation

From terminal, the program can be install with git clone with the project repository, followed by the name of the directory you wish to download the repository to.

Example

$ git clone [email protected]:jdsmith022/fillit.git [directory-name]

Usage

In terminal, go into the project directory. This program uses a makefile to compile. To compile, run:

$ make

The executable name is fillit. A directory in the repository named test files that can be used to test the program. To see names of files available for use is maps directory of repository, from terminal and in git repository:

$ ls -la tests/

ls-la display

However, a tetreminos file from the local computer can be used as long as the path to the file is given as parameter.

$ ./fillit [path-to-file]

Example:

$ ./fillit ./tests/test_1

If incorrect parameters are given or the test is invalid, an error message will be given.

To delete all object files from directory, run:

$ make clean

To delete executable from directory, run:

$ make fclean

Collaborator

This project was a group effort with: Malou

About

Codam fillit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published