projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some fixes, work on Eightpieces draft, add a few capturing variants
[vchess.git]
/
client
/
src
/
variants
/
Shatranj.js
diff --git
a/client/src/variants/Shatranj.js
b/client/src/variants/Shatranj.js
index
bb00101
..
b45d915
100644
(file)
--- a/
client/src/variants/Shatranj.js
+++ b/
client/src/variants/Shatranj.js
@@
-1,6
+1,3
@@
-// TODO: bishop OK, but queen should move vertical/horizontal and capture diagonally.
-// ==> then the pawn promotion is a real promotion (enhancement).
-
import { ChessRules } from "@/base_rules";
export const VariantRules = class ShatranjRules extends ChessRules {
import { ChessRules } from "@/base_rules";
export const VariantRules = class ShatranjRules extends ChessRules {
@@
-21,8
+18,8
@@
export const VariantRules = class ShatranjRules extends ChessRules {
];
}
];
}
- static GenRandInitFen() {
- return ChessRules.GenRandInitFen().replace("w 1111 -", "w");
+ static GenRandInitFen(
randomness
) {
+ return ChessRules.GenRandInitFen(
randomness
).replace("w 1111 -", "w");
}
getPotentialPawnMoves([x, y]) {
}
getPotentialPawnMoves([x, y]) {