This commit is contained in:
Gnieark 2016-06-07 15:27:05 +02:00
parent 8a3c0ba280
commit e2a642c9a6

View File

@ -129,7 +129,28 @@ function playingAT(col){
//\ //\
//for (var kx=x, var ky=y; kx < 7, ky //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 //change player
if(currentPlayer == 1){ if(currentPlayer == 1){
play(2); play(2);