DatUser / chess

0 stars 0 forks source link

[UTILS] two_pow optimization #13

Closed Zuuki closed 4 years ago

Zuuki commented 4 years ago

The assignee will have to optimize the two_pow(int power) function to decrease its complexity.

This function is contained in src/utils/utils.cc

With the bitboard we will only be dealing with power of two so we don't have to generalise this function for every power possible

Zuuki commented 4 years ago

Actually I was a bit retarded, as we are only working with power of two, I forgot that we just could use bit manipulation, now it is much optimised