diff --git a/server/cardnet.cpp b/server/cardnet.cpp index 6fea1d3..69975bd 100644 --- a/server/cardnet.cpp +++ b/server/cardnet.cpp @@ -40,19 +40,19 @@ int main (int argc, char* argv[]) for(auto& param: cmdl.params()) { - if(!param.first.compare("c1")) // card0 p1 + if(!param.first.compare("p1")) // card0 p1 { card_p1 = param.second; } - if(!param.first.compare("c2")) // card0 p2 + if(!param.first.compare("p2")) // card0 p2 { card_p2 = param.second; } - if(!param.first.compare("l1")) // checker p1 + if(!param.first.compare("c1")) // checker p1 { check_p1 = param.second; } - if(!param.first.compare("l2")) // checker p2 + if(!param.first.compare("c2")) // checker p2 { check_p2 = param.second; } @@ -304,13 +304,13 @@ int main (int argc, char* argv[]) void exampleMessage() // help menu { std::cout << "Availble options:" << std::endl; - std::cout << " -c1\tLocation of player 1's card0.txt file" << std::endl; - std::cout << " -c2\tLocation of player 2's card0.txt file" << std::endl; - std::cout << " -l1\tLocation of player 1's check file" << std::endl; - std::cout << " -l2\tLocation of player 2's check file" << std::endl; + std::cout << " -p1\tLocation of player 1's card0.txt file" << std::endl; + std::cout << " -p2\tLocation of player 2's card0.txt file" << std::endl; + std::cout << " -c1\tLocation of player 1's check file" << std::endl; + std::cout << " -c2\tLocation of player 2's check file" << std::endl; std::cout << " -p\tPort number to listen on (1-65535)" << std::endl; - std::cout << std::endl << "Ex (1P): cardnet.exe -c1=\"G:\\card0.txt\" -l1=\"G:\\check.txt\" -p=\"4500\"" << std::endl; - std::cout << "Ex (2P): cardnet.exe -c1=\"G:\\card0.txt\" -c2=\"H:\\card0.txt\" -l1=\"G:\\check.txt\" -l2=\"H:\\check.txt\" -p=\"4500\"" << std::endl; + std::cout << std::endl << "Ex (1P): cardnet.exe -p1=\"G:\\card0.txt\" -c1=\"G:\\check.txt\" -p=\"4500\"" << std::endl; + std::cout << "Ex (2P): cardnet.exe -p1=\"G:\\card0.txt\" -p2=\"H:\\card0.txt\" -c1=\"G:\\check.txt\" -c2=\"H:\\check.txt\" -p=\"4500\"" << std::endl; exit(0); } diff --git a/server/cardnet.exe b/server/cardnet.exe index 769b506..2fcc6e0 100755 Binary files a/server/cardnet.exe and b/server/cardnet.exe differ