Draft Ball variant + some fixes, enhancements and code cleaning
[vchess.git] / client / src / variants / Knightrelay1.js
index 1d1ab52..4f9f7e3 100644 (file)
@@ -5,6 +5,8 @@ export class Knightrelay1Rules extends ChessRules {
     return false;
   }
 
+  // TODO: IsGoodPosition to check that 2 knights are on the board...
+
   getPotentialMovesFrom([x, y]) {
     let moves = super.getPotentialMovesFrom([x, y]);
 
@@ -97,7 +99,7 @@ export class Knightrelay1Rules extends ChessRules {
     return {
       p: 1,
       r: 5,
-      n: 7, //the knight is valuable
+      n: 0, //the knight isn't captured - value doesn't matter
       b: 3,
       q: 9,
       k: 1000