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

View File

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