This commit is contained in:
gnieark 2016-06-02 23:18:28 +02:00
parent 3dc388a45d
commit 58507d6953

View File

@ -125,7 +125,7 @@ function play(player){
var symbol="O";
}
var arrToSend= [
var arrToSend= {
"game-id": "" + gameId,
"action" : "play-turn",
"game" : "tictactoe",
@ -133,7 +133,7 @@ function play(player){
"board" : grid,
"you" : symbol,
"player-index" : p-1
];
};
var stringToSend = JSON.stringify(arrToSend);
var xhr = new XMLHttpRequest();