fixed to string
This commit is contained in:
parent
ca4c22f545
commit
f128c00c03
|
|
@ -109,9 +109,9 @@ public class Board {
|
||||||
ArrayList<String> ps=new ArrayList<>();
|
ArrayList<String> ps=new ArrayList<>();
|
||||||
for(int y=0;y<lNum;y++) {
|
for(int y=0;y<lNum;y++) {
|
||||||
for (int x=0; x<cNum; x++) {
|
for (int x=0; x<cNum; x++) {
|
||||||
if(selectedCell!=null) {
|
if (selectedCell != null) {
|
||||||
ps.add(selectedCell.isWhite()?"W":"B");
|
ps.add(selectedCell.isWhite() ? "W" : "B");
|
||||||
ps.add(selectedCell.getType().toString());
|
ps.add(selectedCell.getType().toString());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ps.add("--");
|
ps.add("--");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue