.
This commit is contained in:
parent
3dc388a45d
commit
58507d6953
|
@ -125,15 +125,15 @@ function play(player){
|
||||||
var symbol="O";
|
var symbol="O";
|
||||||
}
|
}
|
||||||
|
|
||||||
var arrToSend= [
|
var arrToSend= {
|
||||||
"game-id" : "" + gameId,
|
"game-id": "" + gameId,
|
||||||
"action" : "play-turn",
|
"action" : "play-turn",
|
||||||
"game" : "tictactoe",
|
"game" : "tictactoe",
|
||||||
"players" : 2,
|
"players" : 2,
|
||||||
"board" : grid,
|
"board" : grid,
|
||||||
"you" : symbol,
|
"you" : symbol,
|
||||||
"player-index" : p-1
|
"player-index" : p-1
|
||||||
];
|
};
|
||||||
var stringToSend = JSON.stringify(arrToSend);
|
var stringToSend = JSON.stringify(arrToSend);
|
||||||
|
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user