From d42465d17eac975b4091743591238aa4449c712d Mon Sep 17 00:00:00 2001 From: Gnieark Date: Tue, 24 Jul 2018 18:44:01 +0200 Subject: [PATCH] fix empty board type on ludus --- html/testBotScripts/tictactoe.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/testBotScripts/tictactoe.html b/html/testBotScripts/tictactoe.html index 45485c6..e7d3564 100755 --- a/html/testBotScripts/tictactoe.html +++ b/html/testBotScripts/tictactoe.html @@ -218,7 +218,7 @@ function startGame(){ var xhr = new XMLHttpRequest(); xhr.open("POST", document.getElementById('url' + p).value, false); xhr.setRequestHeader("Content-Type", "application/json"); - xhr.send('{"game-id":"1126","action":"init","game":"tictactoe","players":2,"board":"","player-index":' + (p - 1) +'}'); + xhr.send('{"game-id":"1126","action":"init","game":"tictactoe","players":2,"board":{},"player-index":' + (p - 1) +'}'); if(xhr.status == 200) { addLog('Message d\'init envoyé au bot player ' + p ); }else{