欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

naxx Demo1_ZZQ_02.java

程序员文章站 2022-04-07 18:08:26
package wow.naxx;/** * 蜘蛛2 黑女巫站位宏 * * Freeblue Grandel 小德的追逐 * bluecantus winkey * * 搜索 **** spencer_tseng * * @author ZengWenfeng * @email 117791303@QQ.COM * @telephone 13805029595 * @date 2020.12.05 */public class Demo1_ZZQ_02{publi....
package wow.naxx;

/**
 * 蜘蛛2 黑女巫站位宏
 * 
 * Freeblue Grandel 小德的追逐
 * bluecantus winkey
 * 
 * 搜索 **** 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);
	}
}

naxx Demo1_ZZQ_02.java

效果很好的如下:

naxx Demo1_ZZQ_02.java

 

/RA ■■■■■坦■■■■■
/RA ■■□□□王□□□■■
/RA ■□□□□□□□□□■
/RA ■□膜追膜□膜追膜□■
/RA ■□牧坦牧□牧坦牧□■
/RA ■□□□□□□□□□■
/RA ■□输输输□输输输□■
/RA ■■□□□□□□□■■
/RA ■■■■■□■■■■■
/RA 搜索 **** spencer_tseng Freeblue Grandel 小德的追逐 怀旧娱乐

/S ■■■■■坦■■■■■
/S ■■□□□王□□□■■
/S ■□□□□□□□□□■
/S ■□膜追膜□膜追膜□■
/S ■□牧坦牧□牧坦牧□■
/S ■□□□□□□□□□■
/S ■□输输输□输输输□■
/S ■■□□□□□□□■■
/S ■■■■■□■■■■■
/S 搜索 **** spencer_tseng Freeblue Grandel 小德的追逐 怀旧娱乐

https://blog.****.net/spencer_tseng/article/details/110901849

https://blog.****.net/spencer_tseng/article/details/110679182

本文地址:https://blog.****.net/spencer_tseng/article/details/110790376

相关标签: wow java