提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档
前言
提示:以下是本篇文章正文内容,下面案例可供参考
一、pandas是什么?
二、使用步骤
1.引入库
代码如下(示例):
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="./jquery.js"></script>
</head>
<body>
</body>
<script>
board = '';
for(i=0;i++;i<8)
{
board += '<div>'
for(i=0;i++;i<8)
{
board += '<div></div>';
}
board += '</div>';
}
redChess = [che=0.0,ma=0.1,xiang=0.2,shi=0.3,shuai=0.4,shiS=0.5,xiangS=0.6,maS=0.7,cheS=0.8,pao=3.2,paoS=3.6,bingA=4.0,bingB=4.2,bingC=4.4,bingD=4.6,bingE=4.8];
blackChess = [che=8.0,ma=8.1,xiang=8.2,shi=8.3,jiang=8.4,shiS=8.5,xiangS=8.6,maS=8.7,cheS=8.8,pao=6.1,paoS=6.7,bingA=5.0,bingB=5.2,bingC=5.4,bingD=5.6,bingE=5.8];
function cheMove(chess)
{
if(Math.floor(Math.random()*2) == 1)
{
return chess + Math.floor(Math.random() * 9);
}
return chess * Math.floor(Math.random()*9) / 10;
}
function maMove(chess)
{
switch (Math.floor(Math.random() * 4 ))
{
case 0:
case 1:
case 2:
case 3:
}
}
alert(Math.floor(Math.random() * 3 ))
</script>
</html>