Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multi threaded chess #825

Open
HKalbasi opened this issue Sep 2, 2024 · 0 comments
Open

Support multi threaded chess #825

HKalbasi opened this issue Sep 2, 2024 · 0 comments

Comments

@HKalbasi
Copy link

HKalbasi commented Sep 2, 2024

I found a new chess variant, I don't know if it is a well-known variant or not, but I played it sometimes with my friends and it leads to very interesting situations and complex mate in 1 and mate in 2s so I would really like to see it being supported by fairy stockfish.

The idea is very simple. The rules are same as normal chess, except that each piece has its own identity or thread, and in a single move, each piece can do something independent of other pieces. Every piece move should be valid in the board without any actions (so you can't open the way of a piece and move it in a single move) and no two piece can end up in a single square. This could be an opening:

|r|n|b|q|k|b|n|r|
|p|p|p|p|p|p|p|p|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
|P|P|P|P|P|P|P|P|
|R|N|B|Q|K|B|N|R|

1. a4 b4 c4 d4 e4 f4 g4 h4 Nc3 Nf3 - ..

Note that no other piece can make a move here

|r|n|b|q|k|b|n|r|
|p|p|p|p|p|p|p|p|
| | | | | | | | |
| | | | | | | | |
|P|P|P|P|P|P|P|P|
| | |N| | |N| | |
| | | | | | | | |
|R| |B|Q|K|B| |R|

1. .. - d5 e5 c6 f6

|r|n|b|q|k|b|n|r|
|p|p| | | | |p|p|
| | |p| | |p| | |
| | | |p|p| | | |
|P|P|P|P|P|P|P|P|
| | |N| | |N| | |
| | | | | | | | |
|R| |B|Q|K|B| |R|

Then white can capture two pawns simultaneously, and so on.

Checkmate happens when the king can't avoid being captured on the next move. Note that the king can avoid the checkmate with the help of another piece. For example:

|R| | |k| | | | |
| | | | | | | |R|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | |r|
| | | | | | | | |
| | | | | | | | |

Is a checkmate in a normal chess, but in the multi threaded chess, rook can capture the rook and king can avoid the check by going down at the same time, so it is not a check mate.

Multi threaded mode is not specific to chess and a multi threaded shogi, bughouse, antichess and similar are imaginable. Is it possible to implement multi threaded mode in a general way in fairy stockfish?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant