projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Start server implementation for correspondance play (early debug stage)
[vchess.git]
/
public
/
javascripts
/
components
/
game.js
diff --git
a/public/javascripts/components/game.js
b/public/javascripts/components/game.js
index
0d9322e
..
534d9af
100644
(file)
--- a/
public/javascripts/components/game.js
+++ b/
public/javascripts/components/game.js
@@
-120,7
+120,7
@@
Vue.component('my-game', {
this.loadGame();
else if (!!this.fen)
{
this.loadGame();
else if (!!this.fen)
{
- this.vr = new V
ariantRules
(this.fen);
+ this.vr = new V(this.fen);
this.fenStart = this.fen;
}
// TODO: if I'm one of the players in game, then:
this.fenStart = this.fen;
}
// TODO: if I'm one of the players in game, then:
@@
-296,7
+296,7
@@
Vue.component('my-game', {
},
translate: translate,
newGameFromFen: function() {
},
translate: translate,
newGameFromFen: function() {
- this.vr = new V
ariantRules
(this.fen);
+ this.vr = new V(this.fen);
this.moves = [];
this.cursor = -1;
this.fenStart = this.fen;
this.moves = [];
this.cursor = -1;
this.fenStart = this.fen;
@@
-532,12
+532,12
@@
Vue.component('my-game', {
this.moves.pop();
},
gotoMove: function(index) {
this.moves.pop();
},
gotoMove: function(index) {
- this.vr = new V
ariantRules
(this.moves[index].fen);
+ this.vr = new V(this.moves[index].fen);
this.cursor = index;
this.lastMove = this.moves[index];
},
gotoBegin: function() {
this.cursor = index;
this.lastMove = this.moves[index];
},
gotoBegin: function() {
- this.vr = new V
ariantRules
(this.fenStart);
+ this.vr = new V(this.fenStart);
this.cursor = -1;
this.lastMove = null;
},
this.cursor = -1;
this.lastMove = null;
},