當前位置:星座運勢大全官網 - 周易占卜 - 誰知道騎士飛行棋的代碼?

誰知道騎士飛行棋的代碼?

騎士飛行棋遊戲java代碼java代碼包s 1 Java . XML 1;導入Java . util . *;公共課遊戲{掃描儀輸入=新掃描儀(system . in);Map Map = new Map();int player pos 1 = 0;int player pos 2 = 0;int posint舒;int號;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("//騎士飛棋//");system . out . println("////");system . out . println("////");system . out . println(" \\ n \\ n \\ n \\ n \\ n ");系統。out . println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~do { t69 = false;系統。出去。println(" \ n \ t \ t \ t請選擇壹個角色:\n1:激進派三號(傲慢)\t2:布贊彬(忠誠)\t3:羅鵬(只為魏娟所愛)\n4:劉壹(。System.out.print("請選擇玩家1: \t)的角色);role = input . nextint();role 1 =角色;switch(role){ case 1:playername[0]= "根數三(未完成)";打破;案例二:playerName[0]=“buzan bin(忠男)”;打破;案例三:playerName[0]=“羅鵬(唯胡安獨愛)”;打破;案例四:playerName[0]=“劉壹(考考妳的字)”;打破;案例五:playerName[0]=“李竹蓉(女生中的女主角)”;打破;案例六:playerName[0]=“炎龍(龍爺爺)”;打破;案例7: playerName[0]=“郝伊森(好好學習)”;打破;案例八:playerName[0]=“戴齊傑”;打破;案例9: playerName[0]=“楊歡(69朵珍稀花卉)”;打破;Default: System.out.print("\n為T69爭光!人人有責!請重新選擇!”);t69 =真;} } while(t69);Do{ System.out.print("請選擇玩家2的角色:\ t ");role = input . nextint();If (role = = role 1) {system。out.println("玩家2不能選擇與玩家1相同的角色!");} switch(role){ case 1:playername[1]= "根數三(未完成)";打破;案例二:playerName[1]=“蔔贊斌(忠男)”;打破;案例三:playerName[1]=“羅鵬(唯胡安獨愛)”;打破;案例四:playerName[1]=“劉壹(考考妳的字)”;打破;案例五:playerName[1]=“李竹蓉(女生中的女主角)”;打破;案例六:playerName[1]=“炎龍(龍大公)”;打破;案例7: playerName[1]=“郝(好好學習)”;打破;案例八:playerName[1]=“戴(策劃專家)”;打破;案例九:playerName[1]=“楊歡(69朵珍稀花卉)”;打破;默認:System.out.print("為T69爭光!人人有責!請重新選擇!”);} } while(role = = role 1 | | role & gt;9 | |角色& lt=0);System.out.println("玩家1選擇角色:\ t "+Player name[0]);System.out.println("玩家2選擇角色:\ t "+playerName[1]);system . out . println(" Look:\ t \ t "+playername[0]+"←Vs→"+playername[1]+" \ t \ t的生死決鬥!");} public void play(){ system . out . println(" \ n \ n \ n \ n ");system . out . println(" \ n \ n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \ n ");System.out.println("遊覽開始\ n ");system . out . println(" * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \ n \ n ");系統。out . println(" _ "+玩家姓名[0]+"騎兵:士兵");系統。out . println(" _ "+playername[1]+"騎兵:卒\ n ");系統。out . println(" \ n gend:\ t:命運之輪\t★: Mine \t■:暫停\t〓:時間隧道\ t∶normal \ n ");map . player pos 1 = player pos 1;map . player pos 2 = player pos 2;map . show map();//遊戲開始的同時(player pos 1 & lt+0;= 99){ pos = 99;} int []luckyTurn={9,25,40,55,71,88 };int[]雷迪={6,19,27,38,50,66,75,83,91 };int []zanTing={11,48,63,82 };int[]時空隧道={10,23,36,52,69,80 };int[]map = new int[100];for(I = 0;我