projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix Zen chess (not great fix: TODO)
[xogo.git]
/
base_rules.js
diff --git
a/base_rules.js
b/base_rules.js
index
5b49077
..
da72320
100644
(file)
--- a/
base_rules.js
+++ b/
base_rules.js
@@
-1391,6
+1391,7
@@
export default class ChessRules {
return; //king isn't captured this way
}
const steps = pieces[p].attack || pieces[p].steps;
+ if (!steps) return; //cannibal king for example (TODO...)
const range = pieces[p].range;
steps.forEach(s => {
// From x,y: revert step