<body>
Var chess=document. GetElementById (" mycanvas "); Var context=chess. GetContext (' 2 d ');
Var context2=chess. GetContext (' 2 d '); The context. StrokeStyle='yellow';
Var tree=[];
Var isling=[];
for(var i=0; i
Tree [I]=[];
For (var j=0; J
}}
for(var i=0; i
For (var j=0; J
The function drawChessBoard () {
for(var i=0; i
The context. The stroke ();
Context. MoveTo (15, 15 + I * 30);//horizontal 15 lines, located 30 px;
Board of 14 * 14;
Context. The lineTo (aa, 15 + 15 + 30 * I * 30);
The context. The stroke (); }
} drawChessBoard ();//drawing board
Var mymap=new Array (36);
for(var i=0; i<36. I++)
{mymap [I]=1; }
</script>