js+html5双人五子棋(源码下载)
代码如下:
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <title>双人在线五子棋-柯乐义</title> 6 <style type="text/css"> 7 body 8 { 9 margin: 10px; 10 } 11 </style> 12 </head> 13 <body> 14 <div> 15 <canvas width="640" id="canvas" onmousedown="play(event)" height="640">你的浏览器不支持HTML5 canvas ,请使用 google chrome 浏览器 打开. 16 </canvas> 17 </div> 18 <script type="text/javascript" src="keleyi.js"></script> 19 </body> 20 </html>
人机对战:http://keleyi.com/a/bjad/j2a309yk.htm