// This file is part of Timmi. // // Timmi is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. #include #include #include #include #include #include #include int main(int argc, char *argv[]) { if (argc != 3 || strtoi(argv[2]) == 0) { std::cerr << "Usage: " << argv[0] << " host port" << std::endl; return EXIT_FAILURE; } ERRORLEVEL = VERBOSE; TimmiAI ai("SimpleAI"); ai.connect_socket(argv[1], strtoi(argv[2])); ai.mainloop(); return EXIT_SUCCESS; }