Skip to content

Commit

Permalink
use logger
Browse files Browse the repository at this point in the history
  • Loading branch information
m-heim committed Mar 24, 2024
1 parent c1c5e30 commit efb9626
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ int main(int argc, char **argv) {
fen_file.append(optarg);
break;
case 'h':
std::cout << "fce -f [file] -d [depth]" << std::endl;
fce_log(LOG_LEVEL::REGULAR, "fce -f [file] -d [depth]");
break;
default:
std::cerr << "Please provide an argument -h for more info" << std::endl;
exit(2);
fce_error("Please provide an argument -h for more info", 2);
break;
}
}
std::string fen = readFen(fen_file);
Expand All @@ -44,7 +44,7 @@ int main(int argc, char **argv) {

while (true) {
std::string input;
std::cout << "s - search, m - make a move, d - debug, l - eval, e - exit" << std::endl;
fce_log(LOG_LEVEL::REGULAR, "s - search, m - make a move, d - debug, l - eval, e - exit");
std::cin >> input;
if (input == "s") {
int innerDepth = 0;
Expand Down

0 comments on commit efb9626

Please sign in to comment.