projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some fixes. Screen variant computer play is still broken, seemingly
[vchess.git]
/
client
/
src
/
variants
/
Dynamo.js
diff --git
a/client/src/variants/Dynamo.js
b/client/src/variants/Dynamo.js
index
67065d7
..
35c41c5
100644
(file)
--- a/
client/src/variants/Dynamo.js
+++ b/
client/src/variants/Dynamo.js
@@
-767,6
+767,8
@@
export class DynamoRules extends ChessRules {
play(move) {
move.flags = JSON.stringify(this.aggregateFlags());
V.PlayOnBoard(this.board, move);
play(move) {
move.flags = JSON.stringify(this.aggregateFlags());
V.PlayOnBoard(this.board, move);
+ // NOTE; if subTurn == 1, there may be no available moves at subTurn == 2.
+ // However, it's quite easier to wait for a user click.
if (this.subTurn == 2) {
const L = this.firstMove.length;
this.amoves.push(this.getAmove(this.firstMove[L-1], move));
if (this.subTurn == 2) {
const L = this.firstMove.length;
this.amoves.push(this.getAmove(this.firstMove[L-1], move));