Move project to C++
Gigantua opened this issue · 3 comments
Gigantua commented
Your code looks clean - but the usage of color c => board->color[c] really hinders performance.
Think about switching to C++ and a color to a template paramter like
template
void Move(){
}
To have pawn lookups for free!
Greetings.
abulmo commented
The goal of mperft was just to make a perft program based on bitboard that is both simpler and faster than qperft by H.G. Muller. As I meet these goals, a port to C++ is very unlikely, at least in a near future.
Gigantua commented
This is slower than Qperft? At least on my machine. About 30%
abulmo commented
On mine it is 2.3 times faster. You probably did not compile it rightly.