S
S
Stas4042015-06-20 02:13:03
JavaScript
Stas404, 2015-06-20 02:13:03

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

2 answer(s)
O
OnYourLips, 2015-06-20
@OnYourLips

This is a task (to find an implementation), not a question (how to implement some point).

E
Elizaveta Borisova, 2015-06-20
@Elizaveta

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.

They wrote it wrong. The position was repeated for the third time in a row .
The last 50 moves were without taking pieces - - this rule does not work that way. Just without exchanges, this is not a draw (with a full board of pieces).
Contact us if you need professional advice on chess. chess algorithms, and js.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question