From e2d2b49c4b8f5228126991ac5cf41086a51a4285 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Sun, 1 Mar 2020 00:51:39 +0100
Subject: [PATCH] Better pieces values in Knghtrelay variant

---
 client/src/variants/Knightrelay.js | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/client/src/variants/Knightrelay.js b/client/src/variants/Knightrelay.js
index daa7bbb8..eebb0f22 100644
--- a/client/src/variants/Knightrelay.js
+++ b/client/src/variants/Knightrelay.js
@@ -77,6 +77,17 @@ export const VariantRules = class KnightrelayRules extends ChessRules {
     return false;
   }
 
+  static get VALUES() {
+    return {
+      p: 1,
+      r: 5,
+      n: 7, //the knight is valuable
+      b: 3,
+      q: 9,
+      k: 1000
+    };
+  }
+
   getNotation(move) {
     if (move.appear.length == 2 && move.appear[0].p == V.KING)
       // Castle
-- 
2.44.0