naxx Demo1_ZZQ_02.java
package wow.naxx;
/**
* 蜘蛛2 黑女巫站位巨集
*
* Freeblue Grandel 小德的追逐
* bluecantus winkey
*
* 搜尋 CSDN spencer_tseng
*
* @author ZengWenfeng
* @email 117791303@QQ.COM
* @telephone 13805029595
* @date 2020.12.05
*/
public class Demo1_ZZQ_02
{
public static void init(String[][] arr)
{
//1
arr[0][5] = Constant.A2;
//2
arr[1][2] = Constant.A2;
arr[1][3] = Constant.A2;
arr[1][4] = Constant.A2;
arr[1][5] = Constant.A2;
arr[1][6] = Constant.A2;
arr[1][7] = Constant.A2;
arr[1][8] = Constant.A2;
//3
arr[2][1] = Constant.A2;
arr[2][2] = Constant.A2;
arr[2][3] = Constant.A2;
arr[2][4] = Constant.A2;
arr[2][5] = Constant.A2;
arr[2][6] = Constant.A2;
arr[2][7] = Constant.A2;
arr[2][8] = Constant.A2;
arr[2][9] = Constant.A2;
//4
arr[3][1] = Constant.A2;
arr[3][2] = Constant.A2;
arr[3][3] = Constant.A2;
arr[3][4] = Constant.A2;
arr[3][5] = Constant.A2;
arr[3][6] = Constant.A2;
arr[3][7] = Constant.A2;
arr[3][8] = Constant.A2;
arr[3][9] = Constant.A2;
//5
arr[4][1] = Constant.A2;
arr[4][2] = Constant.A2;
arr[4][3] = Constant.A2;
arr[4][4] = Constant.A2;
arr[4][5] = Constant.A2;
arr[4][6] = Constant.A2;
arr[4][7] = Constant.A2;
arr[4][8] = Constant.A2;
arr[4][9] = Constant.A2;
//6
arr[5][1] = Constant.A2;
arr[5][2] = Constant.A2;
arr[5][3] = Constant.A2;
arr[5][4] = Constant.A2;
arr[5][5] = Constant.A2;
arr[5][6] = Constant.A2;
arr[5][7] = Constant.A2;
arr[5][8] = Constant.A2;
arr[5][9] = Constant.A2;
//7
arr[6][1] = Constant.A2;
arr[6][2] = Constant.A2;
arr[6][3] = Constant.A2;
arr[6][4] = Constant.A2;
arr[6][5] = Constant.A2;
arr[6][6] = Constant.A2;
arr[6][7] = Constant.A2;
arr[6][8] = Constant.A2;
arr[6][9] = Constant.A2;
//8
arr[7][2] = Constant.A2;
arr[7][3] = Constant.A2;
arr[7][4] = Constant.A2;
arr[7][5] = Constant.A2;
arr[7][6] = Constant.A2;
arr[7][7] = Constant.A2;
arr[7][8] = Constant.A2;
//9
arr[8][5] = Constant.A2;
}
public static void reset(String[][] arr)
{
arr[0][5] = Constant.T;
arr[1][5] = Constant.B;
arr[3][2] = Constant.MOBAIZHE;
arr[3][3] = Constant.ZHUISUIZHE;
arr[3][4] = Constant.MOBAIZHE;
arr[3][6] = Constant.MOBAIZHE;
arr[3][7] = Constant.ZHUISUIZHE;
arr[3][8] = Constant.MOBAIZHE;
arr[4][2] = Constant.p_MS;
arr[4][3] = Constant.T;
arr[4][4] = Constant.p_MS;
arr[4][6] = Constant.p_MS;
arr[4][7] = Constant.T;
arr[4][8] = Constant.p_MS;
arr[6][2] = Constant.S;
arr[6][3] = Constant.S;
arr[6][4] = Constant.S;
arr[6][6] = Constant.S;
arr[6][7] = Constant.S;
arr[6][8] = Constant.S;
}
public static void main(String[] args)
{
String[][] arr = new String[9][11];
init(arr);
reset(arr);
for (int x = 0; x < arr.length; x++)
{
String[] cur = arr[x];
System.out.print(Constant.RA);
for (int y = 0; y < cur.length; y++)
{
String cell = cur[y];
if (cell == null || cell.equals(""))
{
System.out.print(Constant.A1);
}
else
{
System.out.print(cell);
}
}
System.out.println();
}
System.out.println(Constant.RA + Constant.DESC);
System.out.println();
for (int x = 0; x < arr.length; x++)
{
String[] cur = arr[x];
System.out.print(Constant.SAIY);
for (int y = 0; y < cur.length; y++)
{
String cell = cur[y];
if (cell == null || cell.equals(""))
{
System.out.print(Constant.A1);
}
else
{
System.out.print(cell);
}
}
System.out.println();
}
System.out.println(Constant.SAIY + Constant.DESC);
}
}
效果很好的如下:
/RA ■■■■■坦■■■■■
/RA ■■□□□王□□□■■
/RA ■□□□□□□□□□■
/RA ■□膜追膜□膜追膜□■
/RA ■□牧坦牧□牧坦牧□■
/RA ■□□□□□□□□□■
/RA ■□輸輸輸□輸輸輸□■
/RA ■■□□□□□□□■■
/RA ■■■■■□■■■■■
/RA 搜尋 CSDN spencer_tseng Freeblue Grandel 小德的追逐 懷舊娛樂
/S ■■■■■坦■■■■■
/S ■■□□□王□□□■■
/S ■□□□□□□□□□■
/S ■□膜追膜□膜追膜□■
/S ■□牧坦牧□牧坦牧□■
/S ■□□□□□□□□□■
/S ■□輸輸輸□輸輸輸□■
/S ■■□□□□□□□■■
/S ■■■■■□■■■■■
/S 搜尋 CSDN spencer_tseng Freeblue Grandel 小德的追逐 懷舊娛樂
https://blog.csdn.net/spencer_tseng/article/details/110679182