Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Bugfix, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinniboi10 authored Dec 17, 2024
1 parent 68c6fa2 commit 6dda78f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <deque>
#include <chrono>
#include <array>
#include <sstream>
#include <bitset>
#include <algorithm>

#define ctzll(x) ((x) ? _tzcnt_u64(x) : 64)
#define clzll(x) ((x) ? __lzcnt64(x) : 64)
Expand Down Expand Up @@ -1728,7 +1728,7 @@ int main() {
Board currentPos;
currentPos.reset();
std::atomic<bool> breakFlag(false);
cout << "Bot ready and awaiting commands" << endl;
cout << "Forsaken is ready and awaiting commands" << endl;

while (true) {
std::getline(std::cin, command);
Expand Down Expand Up @@ -1762,12 +1762,6 @@ int main() {
}
else if (command == "quit") {
breakFlag.store(true);
// Ensure the search thread is joined before exiting
if (searchThreadOpt.has_value()) {
if (searchThreadOpt->joinable()) {
searchThreadOpt->join();
}
}
return 0;
}
else if (command == "debug.gamestate") {
Expand Down

0 comments on commit 6dda78f

Please sign in to comment.