This commit is contained in:
gnieark 2016-06-07 23:42:01 +02:00
parent 0c5ff84e77
commit 0a90780a1e

View File

@ -52,6 +52,9 @@ var board=[["","","","","","",""],
var currentPlayer=1;
var gameId="0";
function wins(player){
addLog('player ' + player + ' wins');
}
function createElem(type,attributes){
var elem=document.createElement(type);
for (var i in attributes)
@ -151,7 +154,6 @@ function playingAT(col){
var line="";
var lx , ly;
for (lx = kx, ly = ky; (lx < 7) && (ly > -1); lx++ , ly-- ){
alert (ly + " " + ky);
if( board[ly][lx] == ""){
line += " ";
}else{