projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some advances in Checkered variant
[xogo.git]
/
variants
/
Absorption
/
class.js
diff --git
a/variants/Absorption/class.js
b/variants/Absorption/class.js
index
3e8d391
..
ea91a27
100644
(file)
--- a/
variants/Absorption/class.js
+++ b/
variants/Absorption/class.js
@@
-5,6
+5,7
@@
export default class AbsorptionRules extends ChessRules {
static get Options() {
return {
select: C.Options.select,
static get Options() {
return {
select: C.Options.select,
+ input: C.Options.input,
styles: [
"balance",
"capture",
styles: [
"balance",
"capture",
@@
-22,10
+23,9
@@
export default class AbsorptionRules extends ChessRules {
pieces(color, x, y) {
let fusions = {
pieces(color, x, y) {
let fusions = {
- // amazon
'a': {
"class": "amazon",
'a': {
"class": "amazon",
-
moves
: [
+
both
: [
{
steps: [
[0, 1], [0, -1], [1, 0], [-1, 0],
{
steps: [
[0, 1], [0, -1], [1, 0], [-1, 0],
@@
-41,10
+41,9
@@
export default class AbsorptionRules extends ChessRules {
}
]
},
}
]
},
- // empress
'e': {
"class": "empress",
'e': {
"class": "empress",
-
moves
: [
+
both
: [
{
steps: [
[1, 0], [-1, 0], [0, 1], [0, -1]
{
steps: [
[1, 0], [-1, 0], [0, 1], [0, -1]
@@
-59,10
+58,9
@@
export default class AbsorptionRules extends ChessRules {
}
]
},
}
]
},
- // princess
's': {
"class": "princess",
's': {
"class": "princess",
-
moves
: [
+
both
: [
{
steps: [
[1, 1], [1, -1], [-1, 1], [-1, -1]
{
steps: [
[1, 1], [1, -1], [-1, 1], [-1, -1]