Skip to content

alectronic0/fairyLights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fairyLights

Build Status codecov Codacy Badge

intro

The exercise is to write a controller for a length of fairy lights. There are 20 fairy lights in alternating colours red, green and white that can be independently turned on and off. The controller is a java program that accepts (as a command line parameter) the name of a sequencing algorithm for turning the lights on and off. When launched, the program will execute the requested sequencing algorithm in a permanent loop until it the program is terminated.

To Compile run the Light.bat File (modify the path for your javac, jar and java cmd as needed)

Quickstart

Locally:

git clone https://github.com/alectronic0/fairyLights.git
cd fairyLights
mvn clean install
#
#java -jar target/fairylight.jar ["sequence" | "sequence" | "alternate"] numberOfLights
#
java -jar target/fairylight.jar "sequence"
java -jar target/fairylight.jar "colour"
java -jar target/fairylight.jar "alternate" 
#
java -jar target/fairylight.jar "sequence" "15"

Docker:

git clone https://github.com/alectronic0/fairyLights.git
cd fairyLights
mvn clean install
docker-compose up

Reports & Tests

I've added the following reports:

  • Jacoco Coverage
  • Owasp Dependency Check
  • Junit Test

Run this and the report will displaed on your default browser (Linux or Mac)

./testme.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors