From e2a642c9a6bbfedfd415d1a08ab029f37d8acd18 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Tue, 7 Jun 2016 15:27:05 +0200 Subject: [PATCH] . --- html/testBotScripts/connectfour.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/html/testBotScripts/connectfour.html b/html/testBotScripts/connectfour.html index d802b19..c7c7e47 100644 --- a/html/testBotScripts/connectfour.html +++ b/html/testBotScripts/connectfour.html @@ -129,7 +129,28 @@ function playingAT(col){ //\ //for (var kx=x, var ky=y; kx < 7, ky + /* + 5|X| | | | | | + 4| |X| | | | | + 3| | |X| | | | + 2| | | |X| | | + 1| | | | |X| | + 0|1|2|3|4|5|X| + y=ax+b + 1 = a *5 + b + 5 = a * 1 +b + b = 1 - 5a + 5= a + 1 - 5a + 5 = -4a + 1 + -4a = 4 + a = -1 + b = 6 + + + ky=akx+b + + */ //change player if(currentPlayer == 1){ play(2);