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

正文內(nèi)容

基于android的中國(guó)象棋的設(shè)計(jì)與實(shí)現(xiàn)畢業(yè)論文(參考版)

2025-07-01 00:30本頁(yè)面
  

【正文】 isRed(chessID2)))。isBlack(chessID2))||(isRed(chessID1) amp。 } //判斷chessID1和chessID2是否是同色 public static boolean isSameSide(int chessID1, int chessID2) { return ( (isBlack(chessID1)amp。amp。 chessID = B_END)。 //判斷chessID是否是黑棋 public static boolean isBlack(int chessID) { return (chessID = B_BEGIN amp。 public final static int FLEXIBLE_KING = 0。 public final static int FLEXIBLE_CANON = 6。 public final static int FLEXIBLE_ELEPHANT = 1。 //定義各種棋子的靈活性 //也就是每多一個(gè)可走位置應(yīng)加上的值 //兵15,士1,象1,車(chē)6,馬12,炮6,王0 public final static int FLEXIBLE_PAWN = 15。 public final static int BASEVALUE_CAR = 500。 public final static int BASEVALUE_HORSE = 350。 public final static int BASEVALUE_BISHOP = public final static int R_END = 14。 //紅相 public final static int R_PAWN = 14。 //紅炮 public final static int R_BISHOP = 12。 //紅車(chē) public final static int R_HORSE = 10。 //紅方 public final static int R_KING = 8。 //黑兵 public final static int B_BEGIN = 1。 //黑士 public final static int B_ELEPHANT = 6。 //黑馬 public final static int B_CANON = 4。 //黑帥 public final static int B_CAR = 2。public class ConstData { public final static int NOCHESS = 0。 } } } return current。 //若當(dāng)前走法更優(yōu),則記錄下來(lái) if(score current) { current = score。 //返回此種走法的估值分?jǐn)?shù) score = negaMax(depth1)。 i count 。 } //生產(chǎn)所有可能的走法, count = (m_curPosition, depth,side)。 else side = false。 } boolean side。 i = isGameOver(m_curPosition, depth)。 int count = 0,i。 } //負(fù)極大值搜索引擎 public static int negaMax(int depth) { int current = 20000。 } catch (InterruptedException e) { // TODO Autogenerated catch block ()。 negaMax(m_maxDepth)。 j 9。 i 10。 int i, j。 return bestMove。 } }package 。//兩將都在,返回0 } //取消移動(dòng) public static void unMakeMove(ChessMove move, int chessID) { m_curPosition[][] = m_curPosition[][]。 else return 19990+depth。 else return 19990depth。 } i = (m_maxDepth depth + 1 )%2。 j 6。 i 10。 ++j) { if(position[i][j] == 1) blackLive = true。 ++i) for(j = 3。 for(i = 0。 } //判斷游戲時(shí)候結(jié)束 public static int isGameOver(int position[][], int depth) { int i, j。 m_curPosition[][] = 。 chessID = m_curPosition[][]。 //當(dāng)前搜索深度 public static int m_maxDepth。 //估值產(chǎn)生器 public static Eveluation m_eve = new Eveluation()。 //記錄最佳走棋 public static ChessMove bestMove = new ChessMove()。 }}package 。//棋子的目標(biāo)點(diǎn)x坐標(biāo) = toY。//棋子的起始坐標(biāo) = fromY。//值,估值時(shí)會(huì)用到 public ChessMove(int ChessID, int fromX,int fromY,int toX,int toY,int score){//構(gòu)造器 = ChessID。//目的地的坐標(biāo) int toY。//起始的坐標(biāo) int fromY。/** * 該類(lèi)為棋子的一個(gè)走法 * 包含是什么棋子 * 起始點(diǎn)的位置 * 目標(biāo)點(diǎn)的位置 * 以及估值時(shí)所用到的score */public class ChessMove { int ChessID。//切換View } public void initHelpView(){//初始化幫助界面 (new HelpView(this,this))。 } if(){//是否播放聲音 ()。 //切換到游戲界面 } public void initMenuView(){//初始化菜單界面 if(startSound != null){//停止 ()。//切換到歡迎界面 if(isSound){//需要播放聲音時(shí) ()。//設(shè)置游戲聲音循環(huán)播放 ()。//設(shè)置游戲聲音循環(huán)播放 gamemusic = (this, )。 startSound = (this, )。 //全屏 requestWindowFeature()。//初始化并切換到幫助界面 } } }。//初始化并切換到菜單界面 } else if( == 2){//MenuView傳來(lái)的消息,切換到GameView initGameView()。//開(kāi)始和菜單時(shí)的音樂(lè) MediaPlayer gamemusic。public class ChessActivity extends Activity { boolean isSound = true。import 。import 。//引入相關(guān)的包import 。Android RIL研究及其在無(wú)線(xiàn)通訊模塊上的實(shí)現(xiàn)[D]. 太原科技大學(xué) 2012 附錄:package ?;贏(yíng)ndroid平臺(tái)的數(shù)字電視機(jī)頂盒模擬器的研究與開(kāi)發(fā)[D]. 蘭州大學(xué) 2012 [10] 王康.基于A(yíng)ndroid開(kāi)放平臺(tái)和無(wú)線(xiàn)通信網(wǎng)絡(luò)的實(shí)時(shí)音視頻傳輸系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn)[D]. 蘭州大學(xué) 2012 [9] 劉牛.Android啟動(dòng)過(guò)程優(yōu)化研究[D]. 蘭州大學(xué) 2012 [8] 擺云.用于A(yíng)ndroid手機(jī)操作系統(tǒng)的視頻引擎[J]. 電子設(shè)計(jì)技術(shù). 2010(07) [7] 郭國(guó)勇.基于A(yíng)ndroid系統(tǒng)的手機(jī)游戲黑白棋的設(shè)計(jì)與實(shí)現(xiàn)[J]. 新鄉(xiāng)學(xué)院學(xué)報(bào)(自然科學(xué)版). 2011(03) [6] 叢秋波.基于A(yíng)ndroid平臺(tái)的移動(dòng)位置服務(wù)的開(kāi)發(fā)與實(shí)現(xiàn)[J]. 現(xiàn)代
點(diǎn)擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1