Skip to content

Commit 723ac88

Browse files
committed
Wrong unicode value for black square (used large black circle by mistake); remove dup code
1 parent 9314653 commit 723ac88

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/mcs/mvnu/vestaboard/VestaBoard.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public enum BoardType {
111111
public static final char UNICODE_UTF16_GREEN = '\uDFE9'; // {66} in VestaBoard char codes
112112
public static final char UNICODE_UTF16_VIOLET = '\uDFEA'; // {68} in VestaBoard char codes
113113
public static final char UNICODE_UTF16_WHITE = '\u25A1'; // {69} in VestaBoard char codes
114-
public static final char UNICODE_UTF16_BLACK = '\u2B24'; // {70} in VestaBoard char codes
114+
public static final char UNICODE_UTF16_BLACK = '\u25A0'; // {70} in VestaBoard char codes
115115

116116
// BoardType
117117
private BoardType bt; // Board type is white lettering on black or black lettering on white
@@ -216,11 +216,8 @@ private String convertBoardToString() {
216216
/**
217217
* Wipe the internal virtual vestaboard object
218218
* NOTE: Does not send to the web to avoid wearing out mechanical tiles.
219-
* @throws IOException Input/Output Exception
220-
* @throws InterruptedException Thrown when a thread is waiting, sleeping, or otherwise occupied, and the thread is
221-
* interrupted, either before or during the activity
222219
*/
223-
public void wipeBoard () throws IOException, InterruptedException {
220+
public void wipeBoard () {
224221
for (int i = 0; i < ROWS; i++) {
225222
for (int j = 0; j < COLS; j++) {
226223
board[i][j] = VestaChars.Blank;
@@ -436,8 +433,6 @@ else if (value == VestaChars.J.getCharValue())
436433
convertedString.append('J');
437434
else if (value == VestaChars.K.getCharValue())
438435
convertedString.append('K');
439-
else if (value == VestaChars.J.getCharValue())
440-
convertedString.append('J');
441436
else if (value == VestaChars.L.getCharValue())
442437
convertedString.append('L');
443438
else if (value == VestaChars.M.getCharValue())

0 commit comments

Comments
 (0)