/* * Copyright (c) 2020, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #include "ChessEngine.h" #include #include #include int main() { if (pledge("stdio recvfd sendfd unix rpath", nullptr) < 0) { perror("pledge"); return 1; } Core::EventLoop loop; if (pledge("stdio recvfd sendfd unix", nullptr) < 0) { perror("pledge"); return 1; } if (unveil(nullptr, nullptr) < 0) { perror("unveil"); return 1; } auto engine = ChessEngine::construct(Core::File::standard_input(), Core::File::standard_output()); return loop.exec(); }