freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于cs模式的五子棋網(wǎng)絡(luò)對戰(zhàn)游戲系統(tǒng)的設(shè)計畢業(yè)論文-閱讀頁

2025-07-07 06:36本頁面
  

【正文】 類用于定義一個對戰(zhàn)玩家組,每兩個玩家接受對戰(zhàn)時,系統(tǒng)會將他們編為一組并從玩家列 //表消失public class Group { String self=null。 String player = null。 int selfColor = 0。 boolean Setting = false。 public Group(){ board = new int[15][15]。import .*。public class Server { public static final int PORT = 8180。 public static ArrayList groupList = new ArrayList()。 (Wele using server (alpha test)...\nAuthor:張良周\nCopyright:scitel \nMail:skywolf_2002)。 (This is on the server!)。 try { (create a socket frome server)。 Player client = new Player()。 (client)。 //(Client)。 } } } finally { ()。import .*。 (The Address:+Address)。 (The Address:+Address)。 for(int i=0。i++) (The Address:+sw[i])。import .*。import .*。public class BoardPanel extends JPanel{ private static Image white = null。 private static int xp。 // position of y to put chessman private Cursor handCursor。 protected static int board[][]。 // record player39。 int BASE=5。 int MINDEEPTH=3。 long INVALID=9000000。 // draw the line number with x/y direction String line = a b c d e f g h i j k l m n o。139。239。339。439。539。639。739。839。939。 char [] rowNum2={39。,39。,39。,39。,39。,39。,39。,39。,39。,39。,39。,39。}。 defaultCursor = new Cursor(0)。 jbInit()。 } } public void paint(GraphiC/S gc){ (gc)。 (line,25,15)。i9。 } for(int i=9,j=0。i++,j+=2){ (rowNum2,j,2,10,35+i*30)。 i 15。 //draw raw (30 + i * 30, 30, 30 + i * 30, 450)。 (25, 25, 25, 455)。 (455, 25, 455, 455)。i15。 j 15。 yp=16+j*30。 (xp,yp,28,28)。 } if (board[i][j] == 2){ ()。 //(white, 16 + i * 30, 16 + j * 30, this)。 (new ChessWZQ_this_mouseAdapter(this))。 } public void setColor(int cr){ color=cr。i1。j17。 } repaint()。i15。j15。 } repaint()。 if(color==0){ return。 y=()。 //(In BoardPanel getX()+y) 。amp。amp。amp。amp。amp。 return。//question yp = y / 30 * 30 14。 } if (y % 30 20) { yp += 30。y=yp/30。 } // client 39。 GraphiC/S g=()。 } if(color==2){//white ()。 =false。 = color。 = y。 //press chessman try { (msg)。 } } char cc = (char)(x+65)。 }}public void strToCharArray(String str,char [] arr){ int i。i()amp。i49。 } arr[i]=39。 }protected int getXP(){ return xp/30。 }/** * put a chessman and display it (x,y) position on the panel * draw chessman on (x,y) * param x * param y */ public void drawChess(int x,int y){ GraphiC/S g=()。 int temp = y+1。 y=y*30+16。 else ()。 (Player put on ( +cc+ , +temp+ ))。s chessman39。s chessman39。 if(color==1) tcolor=2。 board[x][y]=tcolor。\039。amp。 else if(x=10 amp。x=15){ temp=(char)(55+x)。 } /** * mouseMoved Event * param e */ void this_mouseMoved(MouseEvent e) { int x=0,y=0。 y=()。amp。amp。amp。amp。amp。 //HAND_CURSOR } else{ (defaultCursor)。s x coordinate * param y the newest kid39。 boolean flag=true。 // x direction for(i=0,count=0。amp。i++){ if (clr==board[xi][y]){ count++。 } break。 if(count==5) return true。x+i15amp。i5。 }else{ if(board[x+i][y]!=0){ flag=false。 } strX=judgeChess(count,flag)。 // if (board[xi][]) } // y direction for(i=0,count=0。amp。i++){ if (clr==board[x][yi]){ count++。 }// (( +x+ , +y+ )+count = +count)。 } for(i=1。amp。i++){ if(clr==board[x][y+i]){ count++。 } // (( +x+ , +y+ )+count = +count)。 } // 39。 direction for(i=0,count=0。amp。amp。i++){ if(clr==board[xi][yi]){ count++。 }// (( +x+ , +y+ )+count = +count)。 } for(i=1。amp。amp。i++){ if(clr==board[x+i][y+i]){ count++。 } // (( +x+ , +y+ )+count = +count)。 } } // 39。 direction for(i=0,count=0。amp。amp。 i++){ if(clr==board[x+i][yi]){ count++。 } // (( +x+ , +y+ )+count = +count)。 } for(i=1。amp。amp。i++){ if(clr==board[xi][y+i]){ count++。 }// (( +x+ , +y+ )+count = +count)。 } } return false。 long mark。class ChessWZQ_this_mouseAdapter extends { BoardPanel adaptee。 } public void mouseClicked(MouseEvent e) { (e)。 ChessWZQ_this_mouseMotionAdapter(BoardPanel adaptee) { = adaptee。 }}ChessWZQ 類//ChessWZQ類是客戶端主程序,處理客戶端與服務(wù)器端的消息傳送import .*。import .*。import .*。public class ChessWZQ extends JFrame { JPanel contentPane。 protected Image white = null。 protected static int pCol
點擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1