game_canvas.onclick=function(e)
{var x=e.offsetX;var y =e.offsetY;
var i=Math.ceil(Math.floor(x/15)/2);
var j=Math.ceil(Math.floor(y/15)/2);
if(chess_check[i][j]==0)
{
draw_chess(i,j,s);
if(s)
{chess_check[i][j]=1;s=!s;}
else
{
chess_check[i][j]=2;
s=!s;
}
}
//修改版落子定位坐标
{var x=e.offsetX;var y =e.offsetY;
var i=Math.ceil(Math.floor(x/15)/2);
var j=Math.ceil(Math.floor(y/15)/2);
if(chess_check[i][j]==0)
{
draw_chess(i,j,s);
if(s)
{chess_check[i][j]=1;s=!s;}
else
{
chess_check[i][j]=2;
s=!s;
}
}
//修改版落子定位坐标