From 4d5b983b4c0bfb88f0e65a755fc684247759e841 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 23 May 2016 12:07:54 +0200 Subject: [PATCH 01/45] empty test bot files --- src/arenas/Battleship/testBot.html | 0 src/arenas/connectFour/testBot.html | 0 src/arenas/tictactoe/testBot.html | 0 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/arenas/Battleship/testBot.html create mode 100644 src/arenas/connectFour/testBot.html create mode 100644 src/arenas/tictactoe/testBot.html diff --git a/src/arenas/Battleship/testBot.html b/src/arenas/Battleship/testBot.html new file mode 100644 index 0000000..e69de29 diff --git a/src/arenas/connectFour/testBot.html b/src/arenas/connectFour/testBot.html new file mode 100644 index 0000000..e69de29 diff --git a/src/arenas/tictactoe/testBot.html b/src/arenas/tictactoe/testBot.html new file mode 100644 index 0000000..e69de29 From 5322444f2b88841d90ccf96da102c2618675db7f Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 23 May 2016 21:18:31 +0200 Subject: [PATCH 02/45] hteumeuleu --- src/arenas/connectFour/testBot.html | 152 ++++++++++++++++++++++++++++ 1 file changed, 152 insertions(+) diff --git a/src/arenas/connectFour/testBot.html b/src/arenas/connectFour/testBot.html index e69de29..e88d027 100644 --- a/src/arenas/connectFour/testBot.html +++ b/src/arenas/connectFour/testBot.html @@ -0,0 +1,152 @@ + + + + + + + + Test ton bot + + + + +
+

Debug and test your connectFour AI

+
+
+ +
+ + + \ No newline at end of file From c34b7f63e97bcc022daded1e4ac0deba27e4cade Mon Sep 17 00:00:00 2001 From: Gnieark Date: Tue, 24 May 2016 20:48:31 +0200 Subject: [PATCH 03/45] test --- src/arenas/connectFour/testBot.html | 222 +++++++++++++--------------- 1 file changed, 102 insertions(+), 120 deletions(-) diff --git a/src/arenas/connectFour/testBot.html b/src/arenas/connectFour/testBot.html index e88d027..a641f2d 100644 --- a/src/arenas/connectFour/testBot.html +++ b/src/arenas/connectFour/testBot.html @@ -7,118 +7,88 @@ Test ton bot + + +function play(grid,player){ + + +} +function startGame(){ + //empty div + document.getElementById("fightResult").innerHTML=""; + //create grid + var table=createElem('table',{'class':'battleGrid'}); + for (var i=6; i > -1; i--){ + var tr=createElem('tr'); + for (var j=0;j<7; j++){ + var td=createElem('td',{'id': 'td' + j + '_' + i}); + tr.appendChild (td); + } + + table.appendChild(tr); + } + document.getElementById('fightResult').appendChild(table); + var divLogs=createElem("div",{"id":"logs"}); + document.getElementById('fightResult').appendChild(divLogs); + + var grid=[["","","","","","",""], + ["","","","","","",""], + ["","","","","","",""], + ["","","","","","",""], + ["","","","","","",""], + ["","","","","","",""]]; + + play(grid,1); + +} +
@@ -127,23 +97,35 @@ pre{
+
+