(this.options["progressive"] && this.subTurn <= this.movesCount)
) {
const oppKingPos = this.searchKingPos(oppCol);
- if (oppKingPos[0] >= 0 && !this.underCheck(oppKingPos, color)) {
+ if (
+ oppKingPos[0] >= 0 &&
+ (
+ this.options["taking"] ||
+ !this.underCheck(oppKingPos, color)
+ )
+ ) {
this.subTurn++;
return;
}
}
}
+.author {
+ color: darkblue;
+ font-style: italic;
+}
+
#boardContainer {
margin: 0;
padding: 0;
// { name: 'Bario', desc: 'A quantum story' },
{name: "Balanced", desc: "balanced chess"},
// { name: 'Baroque', desc: 'Exotic captures' },*/
-// { name: "Benedict", desc: "Change colors" },
+ { name: "Benedict", desc: "Change colors" },
// { name: 'Berolina', desc: 'Pawns move diagonally' },
// { name: 'Bicolour', desc: 'Harassed kings' },
// { name: 'Bishopawns', desc: 'Bishop versus pawns', disp: 'Bishop-Pawns' },
constructor(o) {
super(o);
- this.options.atomic = true;
- }
-
- genRandInitFen(seed) {
- return super.genRandInitFen(seed).slice(0, -1) + ',"rempawn":' + (this.options.rempawn ? "1" : "0") + "}";
- }
-
- // TODO: capture king option doesn't make sense
-
- setOtherVariables(fenParsed) {
- super.setOtherVariables(fenParsed);
- this.options["rempawn"] = (fenParsed.rempawn == 1);
- }
-
- getFen() {
- return super.getFen().slice(0, -1) + ',"rempawn":' + (this.options["rempawn"] ? "1" : "0") + "}";
+ this.options["atomic"] = true;
}
canIplay(x, y) {
-<a href="https://www.chessvariants.com/difftaking.dir/benedict.html">Benedict rules</a>.
+<p>After each move, all units attacked by the moving piece change color.</p>
+
+<p>Goal: change the enemy king's color.</p>
+
+<p class="author">William Daniel Troyka (2001).</p>
<li>Bombs redirect by one square diagonally.</li>
<li>Eggs hide either a bonus or malus, as indicated...</li>
</ul>
+
+<p class="author">Charlotte Blard & Benjamin Auder (2020).</p>
<p>You only see what your pieces can reach and capture.</p>
<p>Win by capturing the enemy king.</p>
+
+<p class="author">Jens Baek Nielsen (1997).</p>
-<p>Pieces capture enemy units which threaten them (normal captures are disabled).</p>
+<p>After the initial white move, each player moves twice on each turn.</p>
-<p>Exception: the king is attacked as usual.</p>
+<p class="author">Albert Fortis (1922).</p>
<p>Pieces capture enemy units which threaten them (normal captures are disabled).</p>
<p>Exception: the king is attacked as usual.</p>
+
+<p class="author">Moe Moss (1970).</p>