From 0c5ff84e77db6b2943d328a3af73b2ff6bf805d0 Mon Sep 17 00:00:00 2001 From: gnieark Date: Tue, 7 Jun 2016 23:40:07 +0200 Subject: [PATCH] . --- html/testBotScripts/connectfour.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/testBotScripts/connectfour.html b/html/testBotScripts/connectfour.html index b56081c..43221c6 100644 --- a/html/testBotScripts/connectfour.html +++ b/html/testBotScripts/connectfour.html @@ -138,7 +138,7 @@ function playingAT(col){ y=-x+b */ //find b - var b = y + x; + var b = parseInt(y + x); if (b < 6){ //first point of the diagonal has x=0; var kx = 0; @@ -167,7 +167,7 @@ function playingAT(col){ //diagonal / affin function like y=x+b - b = 0 + y - x; + b = parseInt(y - x); if( b > -1){ //first point has x=0 kx = 0;