//// Includes
////
+#include <cstdio>
#include <iostream>
#include <string>
#include "bitboard.h"
#include "bitcount.h"
-#include "direction.h"
#include "endgame.h"
#include "evaluate.h"
#include "material.h"
int main(int argc, char* argv[]) {
- // Disable IO buffering
+ // 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_direction_table();
init_bitboards();
init_uci_options();
Position::init_zobrist();
if (argc <= 1)
{
// Print copyright notice
- cout << engine_name()
- << " by Tord Romstad, Marco Costalba, Joona Kiiski" << endl;
+ cout << engine_name() << " by " << engine_author() << endl;
if (CpuHasPOPCNT)
cout << "Good! CPU has hardware POPCNT." << endl;
{
if (string(argv[1]) != "bench" || argc > 7)
cout << "Usage: stockfish bench [hash size = 128] [threads = 1] "
- << "[limit = 12] [fen positions file = default] "
+ << "[limit = 11] [fen positions file = default] "
<< "[depth, time, perft or node limited = depth]" << endl;
else
benchmark(argc, argv);