projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clarify long leaper movement in Ultima rules
[vchess.git]
/
public
/
javascripts
/
variants
/
Extinction.js
diff --git
a/public/javascripts/variants/Extinction.js
b/public/javascripts/variants/Extinction.js
index
9be4b0d
..
f0ebeab
100644
(file)
--- a/
public/javascripts/variants/Extinction.js
+++ b/
public/javascripts/variants/Extinction.js
@@
-123,13
+123,13
@@
class ExtinctionRules extends ChessRules
return this.turn == "w" ? "0-1" : "1-0";
}
return this.turn == "w" ? "0-1" : "1-0";
}
- // Very negative (resp. positive) if white (reps. black) pieces set is incomplete
evalPosition()
{
const color = this.turn;
if (Object.keys(this.material[color]).some(
p => { return this.material[color][p] == 0; }))
{
evalPosition()
{
const color = this.turn;
if (Object.keys(this.material[color]).some(
p => { return this.material[color][p] == 0; }))
{
+ // Very negative (resp. positive) if white (reps. black) pieces set is incomplete
return (color=="w"?-1:1) * VariantRules.INFINITY;
}
return super.evalPosition();
return (color=="w"?-1:1) * VariantRules.INFINITY;
}
return super.evalPosition();