forked from IF-LK-2020/wordle
Readdded letter code
This commit is contained in:
@@ -1,6 +1,26 @@
|
|||||||
package src;
|
|
||||||
|
|
||||||
public class Letter {
|
public class Letter {
|
||||||
|
|
||||||
|
public static byte WHITE = -1;
|
||||||
|
public static byte GRAY = 0;
|
||||||
|
public static byte YELLOW = 1;
|
||||||
|
public static byte GREEN = 2;
|
||||||
|
|
||||||
|
private char letter;
|
||||||
|
private byte color;
|
||||||
|
|
||||||
|
public void setColor(byte color) {
|
||||||
|
this.color = color;
|
||||||
|
}
|
||||||
|
|
||||||
|
public byte getColor() {
|
||||||
|
return color;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLetter(char letter) {
|
||||||
|
this.letter = letter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public char getLetter() {
|
||||||
|
return letter;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user