- Checkout/download the code to your local
- Go to the root folder of the project from terminal / command line
- Build the docker file in the root folder of the project:
docker build . -t bloomwild-sk
- Run the docker image:
docker run -a stdout -a stdin -it bloomwild-sk
- Program runs and expect you to enter data using the console, prompting:
Ready. You can start writing the designs and flowers..
- Enter the designs and flowers line by line, as instructed by the pdf file
- The program will output the created bouquets. (i.e. as soon as a bouquet is ready, not at the end of the execution)
- Enter "q" to quit the program
- Program is running based on the assumptions given in the assesment.pdf, there are no extra validation checks.
- For high flower quantities, the program starts to get slow. And although it may seem responsive and still accepting input from the command line, it actually is not. (total max quantities around <20 run under 1 sec. e.g AS10a10b11, AS6a6b7c11, AS4a4b5c5d11).
- You can find test codes in the test* files. In order to run them, you need to locally setup python.