Fortune Telling Collection - Free divination - Who knows the code of knight flying chess?
Who knows the code of knight flying chess?
Knight flying chess game java code java code package s1java.xml1; Import java.util. *; Public course game {scanner input = new scanner (system. in); Map Map = new Map(); int player pos 1 = 0; int player pos 2 = 0; Intposit Shu; Int number; int I = 0; String[]goAndStop={"on "," on " }; String[]playerName = new String[2]; public void set role(){ boolean t69 = false; int role = 1; int role 1; System.out.println("※system . out . println("////"); system . out . println("////"); System.out.println("// Knight Flying Chess//"); system . out . println("////"); system . out . println("////"); system . out . println(" \\ n \\ n \\ n \\ n \\ n "); System. out . println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~do { t69 = false; System. Get out. Println(" \ n \ t \ t \ t tPlease choose a role: \n 1: Radical No.3 (arrogance) \t2: Buzambin (loyalty) \t3: Luo Peng (only loved by Wei Juan) \n4: Liu Yi (. System.out.print ("Please select the role of player 1: \t)); role = input . nextint(); Role 1 = role; Switch (role) {case1:playername [0] = "root number three (unfinished)"; Break; Case 2: Playername [0] = "Buzan Bin"; Break; Case 3: playerName[0]= "Luo Peng (only Juan loves alone)"; Break; Case 4: playerName[0]= "Liu Yi (test your handwriting)"; Break; Case 5: playerName[0]= "Li Zhurong (heroine among girls)"; Break; Case 6: playerName[0]= "Yan Long (Grandpa Long)"; Break; Case 7: playerName[0]= "Hao Yisen (study hard)"; Break; Case 8: playerName[0]= "Dai Qijie"; Break; Case 9: playerName[0]= "Yang Huan (69 rare flowers)"; Break; Default: System.out.print("\n Win glory for T69! Everyone is responsible! Please re-select! ”); T69 = true; } } while(t69); Do{ System.out.print ("Please select the role of player 2: \ t"); role = input . nextint(); If (role = = role 1) {system。 Out.println ("Player 2 cannot choose the same role as player 1!" ); } switch (role) {case1:playername [1] = "root number three (unfinished)"; Break; Case 2: playerName[ 1]= "Bu Zanbin (loyal man)"; Break; Case 3: playerName[ 1]= "Luo Peng (only Juan loves alone)"; Break; Case 4: playerName[ 1]= "Liu Yi (test your handwriting)"; Break; Case 5: playerName[ 1]= "Li Zhurong (heroine among girls)"; Break; Case 6: playerName[ 1]= "Yan Long (Long Dagong)"; Break; Case 7: playerName[ 1]= "Hao (study hard)"; Break; Case 8: playerName[ 1]= "Dai (planning expert)"; Break; Case 9: playerName[ 1]= "Yang Huan (69 rare flowers)"; Break; Default: System.out.print ("Win glory for T69! Everyone is responsible! Please re-select! ”); } } while(role = = role 1 | | role & gt; 9 | | Role < = 0); System.out.println ("player 1 select role: \ t"+playername [0]); System.out.println ("Player 2 chooses role: \ t"+playername [1]); System. out.println ("look: \ t \ t"+playername [0]+"← vs→"+playername [1]+"\ t \ t's life-and-death duel!" ); } public void play(){ system . out . println(" \ n \ n \ n \ n "); system . out . println(" \ n \ n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \ n "); System.out.println ("Tour starts \ n"); system . out . println(" * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \ n \ n "); System. Out. println(" _ "+ player's name [0]+ "cavalry: soldier"); System. Out.println ("_"+playername [1]+"cavalry: pawn \ n"); System. Out. println(" \ n gend:\ t: Wheel of Destiny \t★: Mine \t■: Pause \ t \: Time Tunnel \ t: normal \ n "); map . player pos 1 = player pos 1; map . player pos 2 = player pos 2; map . show map(); //At the same time as the game starts (PlayerPOS1<+0; = 99){ pos = 99; } int []luckyTurn={9,25,40,55,7 1,88 }; Int[] Reddy ={6, 19, 27, 38, 50, 66, 75, 83, 91}; int []zanTing={ 1 1,48,63,82 }; Int[] time tunnel = ={ 10/0,23,36,52,69,80}; int[]map = new int[ 100]; for(I = 0; I
- Related articles
- Because The Romance of the Three Kingdoms is not history, some contents even do not accord with the official history. What is the creative value of Romance of the Three Kingdoms?
- A brief answer to the first-grade knowledge: the characteristics of the earth 1
- Xia Anan's attack spell in the first season of Little Flower Fairy
- Make 108 coins, * * 68 yuan, how much is one yuan, fifty cents and ten cents respectively?
- 1968 Lunar 65438+February 15 What is a constellation?
- Five elements is a career suitable for gold.
- Craigie Mountain-What is the Chinese name of this song?
- If the actor's face value is not enough, don't squeeze into the ancient doll. Real costume lovers are also very picky.
- Beautiful girl DreamWorks 4 cheats and raiders
- Roll two dice in succession, observe the upward points, and ask: (1)*** How many different results are there? (2) What is the probability that the sum of the points obtained is 4?