From b51164440aa73d056c433c88457c9f7af1180953 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Tue, 1 Jun 2021 11:56:17 +0200
Subject: [PATCH] Fix TwoKings

---
 client/src/variants/Twokings.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/src/variants/Twokings.js b/client/src/variants/Twokings.js
index b5f2b059..d80a57d8 100644
--- a/client/src/variants/Twokings.js
+++ b/client/src/variants/Twokings.js
@@ -88,7 +88,7 @@ export class TwokingsRules extends CoregalRules {
       .replace("q", "k").replace("Q", "K");
     // Now replace a bishop by the queen,
     // so that bishops are of different colors:
-    if (randomness == 1) return sameIndexReplace(fen);
+    if (options.randomness == 1) return sameIndexReplace(fen);
     const wOdd = fen.indexOf('B') % 2;
     const bOdd = fen.indexOf('b') % 2;
     // Since there are 7 slashes, different oddities means symmetric
-- 
2.44.0