#include #include #include #include #include int main(int argc, char *argv[]) { if (argc != 2) { std::cerr << "Usage: " << argv[0] << " " << std::endl; return EXIT_FAILURE; } int port = atoi(argv[1]); ServerState ss; ss.socket = new ListenSocket(port); ss.state = SERVER_PREGAME; ss.gs.turn = 0; ss.gs.c_cards_in_hand = 5; ss.gs.c_over_delay = 30; ss.gs.c_deck_count = 1; do_pregame(ss); do_ingame(ss); return EXIT_SUCCESS; }