一款强大的人机五子棋,代码全开放 部分代码:—————— var divCanvas = document.getElementById("divCanvas"); var canvas = document.getElementById("myCanvas"); var ctx = canvas.getContext("2d"); var locations = new Array(15); //保存棋盘各点状态 [0空,1白子,2黑子] var i