correct bot id

This commit is contained in:
gnieark 2015-12-12 10:49:01 +01:00
parent a392ee2afa
commit 5c93d4da2f

View File

@ -68,8 +68,8 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi
xhr.open("POST", '/Battleship', true); xhr.open("POST", '/Battleship', true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send( xhr.send(
'act=initGame&bot1=' + bot1 'act=initGame&bot1=' + bot1IdName[0]
+ '&bot2=' + bot2 + '&bot2=' + bot2IdName[0]
+ '&gridWidth=' + gridWidth + '&gridWidth=' + gridWidth
+ '&gridHeight=' + gridHeight + '&gridHeight=' + gridHeight
+ '&nbShip1=' + nbShip1 + '&nbShip1=' + nbShip1