along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <cstdio>
#include <iostream>
#include <string>
int main(int argc, char* argv[]) {
- // Disable IO buffering for C and C++ standard libraries
- setvbuf(stdin, NULL, _IONBF, 0);
- setvbuf(stdout, NULL, _IONBF, 0);
- cout.rdbuf()->pubsetbuf(NULL, 0);
- cin.rdbuf()->pubsetbuf(NULL, 0);
-
- // Startup initializations
- init_bitboards();
+ bitboards_init();
Position::init();
kpk_bitbase_init();
Search::init();
uci_loop(); // Enter the UCI loop and wait for user input
}
- else if (string(argv[1]) == "bench" && argc < 8)
+ else if (string(argv[1]) == "bench")
benchmark(argc, argv);
else