Nice one! As Castling is a "King-move" in OliThink also I would have missed this.
A simple method to check if a move delivers checks.
Moderator: Ras
-
- Posts: 846
- Joined: Tue Dec 18, 2007 9:38 pm
- Location: Munich, Germany
- Full name: Dr. Oliver Brausch
Re: A simple method to check if a move delivers checks.
OliThink GitHub: https://github.com/olithink
Nice arcticle about OlIThink: https://www.chessengeria.eu/post/olithink-oldie-goldie
Chess Engine OliThink Homepage: http://brausch.org/home/chess
Nice arcticle about OlIThink: https://www.chessengeria.eu/post/olithink-oldie-goldie
Chess Engine OliThink Homepage: http://brausch.org/home/chess
-
- Posts: 846
- Joined: Tue Dec 18, 2007 9:38 pm
- Location: Munich, Germany
- Full name: Dr. Oliver Brausch
Re: A simple method to check if a move delivers checks.
Do you mean, by e.g.
Code: Select all
BIT[t]
Code: Select all
1LL << t
Easily explained: I tested it thoroughly with millions of games and BIT[t] was a little faster.
My explanation: BIT[64] (or nmoves[64]) are small arrays and fit easily in any level x cache. Maybe I am wrong, but this was my reasoning.
OliThink GitHub: https://github.com/olithink
Nice arcticle about OlIThink: https://www.chessengeria.eu/post/olithink-oldie-goldie
Chess Engine OliThink Homepage: http://brausch.org/home/chess
Nice arcticle about OlIThink: https://www.chessengeria.eu/post/olithink-oldie-goldie
Chess Engine OliThink Homepage: http://brausch.org/home/chess