.
This commit is contained in:
parent
0c5ff84e77
commit
0a90780a1e
|
@ -52,6 +52,9 @@ var board=[["","","","","","",""],
|
||||||
var currentPlayer=1;
|
var currentPlayer=1;
|
||||||
var gameId="0";
|
var gameId="0";
|
||||||
|
|
||||||
|
function wins(player){
|
||||||
|
addLog('player ' + player + ' wins');
|
||||||
|
}
|
||||||
function createElem(type,attributes){
|
function createElem(type,attributes){
|
||||||
var elem=document.createElement(type);
|
var elem=document.createElement(type);
|
||||||
for (var i in attributes)
|
for (var i in attributes)
|
||||||
|
@ -151,7 +154,6 @@ function playingAT(col){
|
||||||
var line="";
|
var line="";
|
||||||
var lx , ly;
|
var lx , ly;
|
||||||
for (lx = kx, ly = ky; (lx < 7) && (ly > -1); lx++ , ly-- ){
|
for (lx = kx, ly = ky; (lx < 7) && (ly > -1); lx++ , ly-- ){
|
||||||
alert (ly + " " + ky);
|
|
||||||
if( board[ly][lx] == ""){
|
if( board[ly][lx] == ""){
|
||||||
line += " ";
|
line += " ";
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user