meilleurs affichage
This commit is contained in:
@@ -147,9 +147,9 @@ public class GomokuCell{
|
|||||||
case Color.NIL:
|
case Color.NIL:
|
||||||
return ".";
|
return ".";
|
||||||
case Color.BLACK:
|
case Color.BLACK:
|
||||||
return "X";
|
return "\u274C";
|
||||||
case Color.WHITE:
|
case Color.WHITE:
|
||||||
return "O";
|
return "\uD83D";
|
||||||
default:
|
default:
|
||||||
throw new IllegalStateException("Unexpected value: " + this.getState());
|
throw new IllegalStateException("Unexpected value: " + this.getState());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -226,10 +226,10 @@ public class GomokuGame {
|
|||||||
char c;
|
char c;
|
||||||
switch (board.get(i, j).getState()) {
|
switch (board.get(i, j).getState()) {
|
||||||
case BLACK:
|
case BLACK:
|
||||||
c = '\u274C';
|
c = 'X';
|
||||||
break;
|
break;
|
||||||
case WHITE:
|
case WHITE:
|
||||||
c = '\uD83D';
|
c = 'O';
|
||||||
break;
|
break;
|
||||||
case NIL:
|
case NIL:
|
||||||
c = '.';
|
c = '.';
|
||||||
|
|||||||
Reference in New Issue
Block a user