fairy-stockfish / Fairy-Stockfish

chess variant engine supporting Xiangqi, Shogi, Janggi, Makruk, S-Chess, Crazyhouse, Bughouse, and many more
https://fairy-stockfish.github.io/
GNU General Public License v3.0
612 stars 191 forks source link

Nighty Zones (Amazons with Knights instead) #670

Closed Rechefiltr-is-Fire closed 1 year ago

Rechefiltr-is-Fire commented 1 year ago

I’ve created a Amazons-based game where all Queen-line activity (moving and shooting) becomes Knight-leap (Archers become Lancers).

I’ve even drawn all pieces images (except for checkers-like pictures).

ianfab commented 1 year ago

You mean like this? https://github.com/fairy-stockfish/Fairy-Stockfish/blob/8549ed1dd01e641e234e073a0b86dac70923dcf4/src/variants.ini#L1542-L1548

Rechefiltr-is-Fire commented 1 year ago

I mean Amazons on PlayStrategy (10x10) and variant is strongly based on it.

gbtami commented 1 year ago

https://github.com/fairy-stockfish/Fairy-Stockfish/blob/master/src/variant.cpp#L1636

Rechefiltr-is-Fire commented 1 year ago

`#ifdef ALLVARS // Game of the Nighty Zones Variant nightyzones_variant() { Variant v = chess_variant_base()->init(); v->pieceToCharTable = "....N.....................n................."; v->maxRank = RANK_10; v->maxFile = FILE_J; v->reset_pieces(); v->add_piece(CUSTOM_PIECE_1, 'n', "mN"); v->startFen = "3n2n3/10/10/n8n/10/10/N8N/10/10/3N2N3 w - - 0 1"; v->stalemateValue = -VALUE_MATE; v->arrowGating = true; return v; }

endif`

Probably can work?

ianfab commented 1 year ago

What you are suggesting literally is just the variant I linked above simply with a different board size (and setup). If you need help configuring a variant feel free to ask on discord, but in terms of a feature request I consider this as closed.

Rechefiltr-is-Fire commented 1 year ago

How to embed that in PlayStrategy, though?