projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rollback: will not implement a simultaneous games mode
[vchess.git]
/
client
/
src
/
views
/
Game.vue
diff --git
a/client/src/views/Game.vue
b/client/src/views/Game.vue
index
776b9ea
..
9094309
100644
(file)
--- a/
client/src/views/Game.vue
+++ b/
client/src/views/Game.vue
@@
-522,11
+522,7
@@
export default {
},
getGameType: function(game) {
if (!!game.id.toString().match(/^i/)) return "import";
},
getGameType: function(game) {
if (!!game.id.toString().match(/^i/)) return "import";
- return (
- game.cadence.indexOf("d") >= 0
- ? "corr"
- : (game.cadence.indexOf("/") >= 0 ? "simul" : "live")
- );
+ return (game.cadence.indexOf("d") >= 0 ? "corr" : "live");
},
// Notify something after a new move (to opponent and me on MyGames page)
notifyMyGames: function(thing, data) {
},
// Notify something after a new move (to opponent and me on MyGames page)
notifyMyGames: function(thing, data) {
@@
-755,9
+751,9
@@
export default {
case "newmove": {
// DEBUG:
case "newmove": {
// DEBUG:
-console.log("Receive move");
-console.log(data.data);
-//moveslist not updated when receiving a move? (see in
b
aseGame)
+
//
console.log("Receive move");
+
//
console.log(data.data);
+//moveslist not updated when receiving a move? (see in
B
aseGame)
const movePlus = data.data;
const movesCount = this.game.moves.length;
const movePlus = data.data;
const movesCount = this.game.moves.length;
@@
-1047,6
+1043,7
@@
console.log(data.data);
let gameInfo = {
id: getRandString(), //ignored if corr
fen: V.GenRandInitFen(this.game.randomness),
let gameInfo = {
id: getRandString(), //ignored if corr
fen: V.GenRandInitFen(this.game.randomness),
+ randomness: this.game.randomness,
players: [this.game.players[1], this.game.players[0]],
vid: this.game.vid,
cadence: this.game.cadence
players: [this.game.players[1], this.game.players[0]],
vid: this.game.vid,
cadence: this.game.cadence
@@
-1068,7
+1065,6
@@
console.log(data.data);
"/games",
"POST",
{
"/games",
"POST",
{
- // cid is useful to delete the challenge:
data: { gameInfo: gameInfo },
success: (response) => {
gameInfo.id = response.gameId;
data: { gameInfo: gameInfo },
success: (response) => {
gameInfo.id = response.gameId;