Answer the question
In order to leave comments, you need to log in
Chess: implementation of check of the correctness of the move and search for possible moves with non-standard dimensions of the board?
Greetings!
I am looking for information on checking the correctness of a move and searching for possible moves in chess with different board dimensions (classical chess: 8x8, mini-chess: 5x5 and any other non-standard dimensions, and in the future also shapes).
Finding implementations of checks for classical chess was not a problem, but they do not work with other dimensions - for example, castling. For the time being, it is intended to castle according to the rules of Fischer Chess whenever possible.
Do readers have anything interesting about this (links, implementations)?
If you write yourself, what can you suggest, in particular, about the check algorithms?
Answer the question
In order to leave comments, you need to log in
This is a task (to find an implementation), not a question (how to implement some point).
Do you check all the listed rules for different dimensions?
Castling and pawns will not converge).
The main moves must converge, the rest must be written by yourself.
For a more accurate answer, you need to look at the code that you have chosen.
Three-time repetition of the position - the position was repeated for the third time, a draw.
50-move rule - the last 50 moves were without taking pieces, a draw.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question