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
/
Extinction.js
diff --git
a/client/src/variants/Extinction.js
b/client/src/variants/Extinction.js
index
8896292
..
45ace33
100644
(file)
--- a/
client/src/variants/Extinction.js
+++ b/
client/src/variants/Extinction.js
@@
-85,8
+85,8
@@
export const VariantRules = class ExtinctionRules extends ChessRules {
return true; //always at least one possible move
}
return true; //always at least one possible move
}
-
underCheck(
) {
- return
false
; //there is no check
+
filterValid(moves
) {
+ return
moves
; //there is no check
}
getCheckSquares() {
}
getCheckSquares() {
@@
-117,7
+117,7
@@
export const VariantRules = class ExtinctionRules extends ChessRules {
getCurrentScore() {
if (this.atLeastOneMove()) {
getCurrentScore() {
if (this.atLeastOneMove()) {
- //
g
ame not over?
+ //
G
ame not over?
const color = this.turn;
if (
Object.keys(this.material[color]).some(p => {
const color = this.turn;
if (
Object.keys(this.material[color]).some(p => {