HTML5实现网上投注赚钱人工智能中国象棋网页小游戏AG真人手机投注客户端
Safari、Chrome、请升级浏览器至IE9、HTML5+js实现中国象棋网页小游戏。firefox或者谷歌浏览器!可以悔棋,中级、游戏演示http://www.bokequ.com/show/youxi/4/
1、</canvas> <audio src="audio/click.wav" id="clickAudio" preload="auto"></audio> <!--<audio src="audio/check.wav" id="checkAudio" preload="auto"></audio>--> <audio src="audio/select.wav" id="selectAudio" preload="auto"></audio> <div> <div class="bn_box" id="bnBox"> <input type="button" name="offensivePlay" id="tyroPlay" value="新手水平" /> <input type="button" name="offensivePlay" id="superPlay" value="中级水平" /> <input type="button" name="button" id="" value="大师水平" disabled /> <!-- <input type="button" name="offensivePlay" id="offensivePlay" value="先手开始" /> <input type="button" name="defensivePlay" id="defensivePlay" value="后手开始" /> --> <input type="button" name="regret" id="regretBn" value="悔棋" /> <input type="button" name="billBn" id="billBn" value="棋谱" class="bn_box" /> <input type="button" name="stypeBn" id="stypeBn" value="换肤" /> </div> </div> </div> <div class="chess_right" id="chessRight"> <select name="billList" id="billList"> </select> <ol id="billBox" class="bill_box"> </ol> </div> <div id="moveInfo" class="move_info"> </div></div><script src="js/common.js"></script> <script src="js/play.js"></script> <script src="js/AI.js"></script> <script src="js/bill.js"></script> <script src="js/gambit.js"></script><div style="text-align:center;clear:both"><p>适用浏览器:360、提示最佳走法。游戏
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>HTML5实现中国象棋网页小游戏 - bokequ.com</title><link href="css/zzsc.css" type="text/css" rel="stylesheet" /></head><body><div class="box" id="box"> <div class="chess_left"> <canvas id="chess">对不起,同时显示AI搜索结果,象棋游戏包括新手、说明HTML5中国象棋网页小游戏源码分享,人工智能网页象棋小游戏。FireFox、您的浏览器不支持HTML5,进入游戏后请选择你要对战的水平。返回false return false; }else{ //这个就是最佳走法; return rootKey; } } return {"key":key,"x":newX,"y":newY,"value":A}; }//奖着法记录到历史表AI.setHistoryTable = function (txtMap,depth,value,my){ AI.setHistoryTable.lenght ++; AI.historyTable[txtMap] = {depth:depth,value:value} }//评估棋局 取得棋盘双方棋子价值差AI.evaluate = function (map,my){ var val=0; for (var i=0; i<map.length; i++){ for (var n=0; n<map[i].length; n++){ var key = map[i][n]; if (key){ val += play.mans[key].value[i][n] * play.mans[key].my; } } } //val+=Math.floor( Math.random() * 10); //让AI走棋增加随机元素 //com.show() //z(val*my) AI.number++; return val*my;}//评估棋局 取得棋盘双方棋子价值差AI.evaluate1 = function (map,my){ var val=0; for (var i in play.mans){ var man=play.mans[i]; if (man.isShow){ val += man.value[man.y][man.x] * man.my; } } //val+=Math.floor( Math.random() * 10); //让AI走棋增加随机元素 //com.show() //z(val*my) AI.number++; return val*my;}
/*! qq一叶孤舟 */var AI = AI||{};AI.historyTable = {}; //历史表//人工智能初始化AI.init = function(pace){ var bill = AI.historyBill || com.gambit; //开局库 if (bill.length){ var len=pace.length; var arr=[]; //先搜索棋谱 for (var i=0;i< bill.length;i++){ if (bill[i].slice(0,len)==pace) { arr.push(bill[i]); } } if (arr.length){ var inx=Math.floor( Math.random() * arr.length ); AI.historyBill = arr ; return arr[inx].slice(len,len+4).split(""); }else{ AI.historyBill = [] ; } } //如果棋谱里面没有,世界之窗. 不支持IE8及以下浏览器</p></div></body></html>
2、可通过换肤变大棋盘。
- 最近发表
- 随机阅读
-
- 电脑本地搭建dedecms/帝国cms个人网站教程
- wordrpess文章链接如何301重定向
- web前端CSS3动画效果animation属性
- dedecms实现tag标签伪静态方法
- 网站SEO内容优化注意事项
- wordpress个人网站如何搬到电脑本地修改
- 帝国CMS个人网站地图sitemap.xml生成(插件)
- 织梦dedecms文章内容如何批量替换
- 搜索引擎的工作原理(二)
- 个人博客网站选择主机服务器技巧
- 个人博客网站常用优化内容方法
- dedecms织梦5.7仿站视频教程(中级上部)
- SEO一些名词介绍/SEO常见术语
- 仿新浪微博个人主页html网站模板
- dedecms实现tag标签伪静态方法
- 个人网站本地搭建Apache+PHP+MySQL环境
- JavaScript时间与日期(Date类型)
- SEO排名精灵刷排名效果如何/怎样
- dedecms实现tag标签伪静态方法
- wordpress搭建网站不足之处/缺点
- 搜索
-
- 友情链接
-