Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
m-heim committed Apr 14, 2024
1 parent 3aaddb3 commit 38658ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ int main(int argc, char **argv) {

std::cout << "Position\n" << position.stringify_board() << std::endl;

while (true) {
while (true) { // menu loop
std::string input;
fce_log(LOG_LEVEL::REGULAR, "s - search, m - make a move, d - debug, l - eval, e - exit");
std::cin >> input;
Expand All @@ -56,7 +56,7 @@ int main(int argc, char **argv) {
std::cout << "BestMove" << bestMove.first.getFrom().stringify()
<< bestMove.first.getTo().stringify() << std::endl
<< "Eval" << std::to_string(bestMove.second) << std::endl;
TranspositionTable::init();
TranspositionTable::init(); // reset transposition table
} else if (input == "m") {
std::string buf;
std::cin >> buf;
Expand Down

0 comments on commit 38658ff

Please sign in to comment.