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