From 5c93d4da2f7abf6b96af8d00bbe4bd40524aa6d5 Mon Sep 17 00:00:00 2001 From: gnieark Date: Sat, 12 Dec 2015 10:49:01 +0100 Subject: [PATCH] correct bot id --- src/arenas/Battleship/js.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arenas/Battleship/js.js b/src/arenas/Battleship/js.js index 50ee1c3..a6b8098 100644 --- a/src/arenas/Battleship/js.js +++ b/src/arenas/Battleship/js.js @@ -68,8 +68,8 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi xhr.open("POST", '/Battleship', true); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.send( - 'act=initGame&bot1=' + bot1 - + '&bot2=' + bot2 + 'act=initGame&bot1=' + bot1IdName[0] + + '&bot2=' + bot2IdName[0] + '&gridWidth=' + gridWidth + '&gridHeight=' + gridHeight + '&nbShip1=' + nbShip1