From 55e80fb781c995ecbc472615cac547ebfff6d56a Mon Sep 17 00:00:00 2001 From: Gnieark Date: Sun, 29 May 2016 17:27:07 +0200 Subject: [PATCH] just for synchronize on my other computer --- html/.testBot.html.kate-swp | Bin 0 -> 90 bytes html/testBot.html | 42 ++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 html/.testBot.html.kate-swp diff --git a/html/.testBot.html.kate-swp b/html/.testBot.html.kate-swp new file mode 100644 index 0000000000000000000000000000000000000000..5ce10d035f5f7b7e7aa2ea409d6bef339682b15e GIT binary patch literal 90 zcmZQzU=Z?7EJ;-eE>A2_aLdd|RWQ;sU|?Vn$j|?BLh79Km%|^zL=-q)bOw6@Mbm+p V2Z$L -1){ + wins(currentPlayer); + return; + } + + //verticaly + var line=""; + for (var k=0; k < 6; k++){ + if(grid[k][x] == ""){ + line += " "; + }else{ + line += grid[k][x]; + } + } + if (line.indexOf(searchValue) > -1){ + wins(currentPlayer); + return; + } + + //diagonals + //\ + + for (var kx=x, var ky=y; kx < 7, ky + //change player if(currentPlayer == 1){ play(2);