From 67209f150d44b6ac5fcc01659442fcc9a4815e95 Mon Sep 17 00:00:00 2001 From: Belzedar94 <54615238+Belzedar94@users.noreply.github.com> Date: Tue, 28 Jun 2022 14:56:15 +0200 Subject: [PATCH] Add in-built support for Raazuvaa (Maldivian Chess) (#503) --- README.md | 1 + src/variant.cpp | 9 +++++++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/README.md b/README.md index 11e84ab..1bbda2f 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ The games currently supported besides chess are listed below. Fairy-Stockfish ca - [Sittuyin](https://en.wikipedia.org/wiki/Sittuyin) - [Shatar](https://en.wikipedia.org/wiki/Shatar), [Jeson Mor](https://en.wikipedia.org/wiki/Jeson_Mor) - [Shatranj](https://en.wikipedia.org/wiki/Shatranj), [Courier](https://en.wikipedia.org/wiki/Courier_chess) +- [Raazuvaa](https://www.reddit.com/r/chess/comments/sj7y3n/raazuvaa_the_chess_of_the_maldives) ### Chess variants - [Capablanca](https://en.wikipedia.org/wiki/Capablanca_Chess), [Janus](https://en.wikipedia.org/wiki/Janus_Chess), [Modern](https://en.wikipedia.org/wiki/Modern_Chess_(chess_variant)), [Chancellor](https://en.wikipedia.org/wiki/Chancellor_Chess), [Embassy](https://en.wikipedia.org/wiki/Embassy_Chess), [Gothic](https://www.chessvariants.com/large.dir/gothicchess.html), [Capablanca random chess](https://en.wikipedia.org/wiki/Capablanca_Random_Chess) diff --git a/src/variant.cpp b/src/variant.cpp index 632272e..24c8386 100644 --- a/src/variant.cpp +++ b/src/variant.cpp @@ -79,6 +79,14 @@ namespace { v->add_piece(FERS, 'f'); return v; } + // Raazuva (Maldivian Chess) + Variant* raazuvaa_variant() { + Variant* v = chess_variant()->init(); + v->startFen = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w - - 0 1"; + v->castling = false; + v->doubleStep = false; + return v; + } // Makruk (Thai Chess) // https://en.wikipedia.org/wiki/Makruk Variant* makruk_variant() { @@ -1482,6 +1490,7 @@ void VariantMap::init() { add("flipersi", flipersi_variant()); add("flipello", flipello_variant()); add("minixiangqi", minixiangqi_variant()); + add("raazuvaa", raazuvaa_variant()); #ifdef LARGEBOARDS add("shogi", shogi_variant()); add("shoshogi", shoshogi_variant()); -- 1.7.0.4