From 535c2d251599e5d17ca23cc81859947cfb257b07 Mon Sep 17 00:00:00 2001 From: Mathis Date: Tue, 3 May 2022 16:23:10 +0200 Subject: [PATCH] UPDATE Color with improvements --- src/main/java/latice/model/Color.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/main/java/latice/model/Color.java b/src/main/java/latice/model/Color.java index 27b16fa..7c3fe17 100644 --- a/src/main/java/latice/model/Color.java +++ b/src/main/java/latice/model/Color.java @@ -1,5 +1,20 @@ package latice.model; public enum Color { - YELLOW, BLUE, RED, PURPLE, GREEN, TURCHESE; + YELLOW("y"), + NAVYBLUE("n"), + RED("r"), + MAGENTA("m"), + GREEN("g"), + TURQUOISE("t"); //TODO find what is the color turchese, and write it's color code + + private String stringColor; + + Color(String stringColor) { + this.stringColor = stringColor; + } + + public String getStringColor() { + return this.stringColor; + } }