fix empty board type on ludus

This commit is contained in:
Gnieark 2018-07-24 18:44:01 +02:00
parent f1402860e1
commit d42465d17e

View File

@ -218,7 +218,7 @@ function startGame(){
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open("POST", document.getElementById('url' + p).value, false); xhr.open("POST", document.getElementById('url' + p).value, false);
xhr.setRequestHeader("Content-Type", "application/json"); 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) { if(xhr.status == 200) {
addLog('Message d\'init envoyé au bot player ' + p ); addLog('Message d\'init envoyé au bot player ' + p );
}else{ }else{