faecie / bouquets

Home task

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bouquets

Scrutinizer Code Quality Build Status Code Coverage

An application that takes the bouquet designs and the stream of flowers as an input, and produce the stream of bouquets as an output.

Input / output format specifications

  • A flower specie is identified by a single, lowercase letter: a - z;
  • A flower sizes is indicated by a single, uppercase letter: L (large) and S (small).
  • A flower is identified by a flower specie and a flower size: for example, rL.
  • A bouquet name is indicated by a single, uppercase letter: A - Z;
  • A bouquet size is indicated by a single, uppercase letter: L (large) and S (small).
  • A bouquet design is single line of characters with the following format:
<bouquet name><bouquet size><flower 1 quantity><flower 1
specie>...<flower N quantity><flower N specie><total quantity of
flowers in the bouquet>

Quick start

  1. Download the project. Or clone the repository:

    git clone git@github.com:faecie/bouquets.git
    
  2. To run the emulation execute the command inside of the project's folder:

    make run
    

    ❗ Requires Docker

About

Home task

License:MIT License


Languages

Language:PHP 91.3%Language:Dockerfile 5.1%Language:Shell 3.3%Language:Makefile 0.4%