.
This commit is contained in:
parent
3dc388a45d
commit
58507d6953
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user