-static struct gg_option const long_options[] =
-{
- {"mode", required_argument, 0, OPT_MODE},
- {"replay", required_argument, 0, OPT_REPLAY_GAME},
- {"quiet", no_argument, 0, OPT_QUIET},
- {"silent", no_argument, 0, OPT_QUIET},
- {"gtp-input", required_argument, 0, OPT_GTP_INPUT},
- {"gtp-connect", required_argument, 0, OPT_GTP_CONNECT},
- {"gtp-listen", required_argument, 0, OPT_GTP_LISTEN},
- {"gtp-dump-commands", required_argument, 0, OPT_GTP_DUMP_COMMANDS},
- {"orientation", required_argument, 0, OPT_GTP_INITIAL_ORIENTATION},
- {"gtp-initial-orientation",
- required_argument, 0, OPT_GTP_INITIAL_ORIENTATION},
- {"gtp-version", required_argument, 0, OPT_GTP_VERSION},
- {"infile", required_argument, 0, 'l'},
- {"until", required_argument, 0, 'L'},
- {"outfile", required_argument, 0, 'o'},
- {"output-flags", required_argument, 0, 'O'},
- {"boardsize", required_argument, 0, OPT_BOARDSIZE},
- {"color", required_argument, 0, OPT_COLOR},
- {"handicap", required_argument, 0, OPT_HANDICAPSTONES},
- {"komi", required_argument, 0, OPT_KOMI},
- {"help", optional_argument, 0, 'h'},
- {"copyright", no_argument, 0, OPT_SHOWCOPYRIGHT},
- {"version", no_argument, 0, 'v'},
- {"allpats", no_argument, 0, 'a'},
- {"printboard", no_argument, 0, 'T'},
- {"printeyes", no_argument, 0, 'E'},
- {"debug", required_argument, 0, 'd'},
- {"debug-flags", no_argument, 0, OPT_DEBUG_FLAGS},
- {"depth", required_argument, 0, 'D'},
- {"backfill-depth", required_argument, 0, 'B'},
- {"branch-depth", required_argument, 0, OPT_BRANCH_DEPTH},
- {"backfill2-depth", required_argument, 0, OPT_BACKFILL2_DEPTH},
- {"break-chain-depth", required_argument, 0, OPT_BREAK_CHAIN_DEPTH},
- {"superstring-depth", required_argument, 0, OPT_SUPERSTRING_DEPTH},
- {"fourlib-depth", required_argument, 0, 'F'},
- {"ko-depth", required_argument, 0, 'K'},
- {"aa-depth", required_argument, 0, OPT_AA_DEPTH},
- {"owl-distrust", required_argument, 0, OPT_OWL_DISTRUST},
- {"owl-branch", required_argument, 0, OPT_OWL_BRANCH},
- {"owl-reading", required_argument, 0, OPT_OWL_READING},
- {"owl-node-limit", required_argument, 0, OPT_OWL_NODE_LIMIT},
- {"print-levels", no_argument, 0, OPT_PRINT_LEVELS},
- {"level", required_argument, 0, OPT_LEVEL},
- {"min-level", required_argument, 0, OPT_MIN_LEVEL},
- {"max-level", required_argument, 0, OPT_MAX_LEVEL},
- {"limit-search", required_argument, 0, OPT_LIMIT_SEARCH},
- {"clock", required_argument, 0, OPT_CLOCK_TIME},
- {"byo-time", required_argument, 0, OPT_CLOCK_BYO_TIME},
- {"byo-period", required_argument, 0, OPT_CLOCK_BYO_PERIOD},
- {"autolevel", no_argument, 0, OPT_AUTOLEVEL},
- {"chinese-rules", no_argument, 0, OPT_CHINESE_RULES},
- {"japanese-rules", no_argument, 0, OPT_JAPANESE_RULES},
- {"experimental-semeai", no_argument, 0, OPT_EXPERIMENTAL_SEMEAI},
- {"experimental-owl-ext", no_argument, 0, OPT_EXPERIMENTAL_OWL_EXT},
- {"semeai-node-limit", required_argument, 0, OPT_SEMEAI_NODE_LIMIT},
- {"experimental-connections", no_argument, 0, OPT_EXPERIMENTAL_CONNECTIONS},
- {"standard-connections", no_argument, 0, OPT_STANDARD_CONNECTIONS},
- {"standard-semeai", no_argument, 0, OPT_STANDARD_SEMEAI},
- {"alternate-connections", no_argument, 0, OPT_ALTERNATE_CONNECTIONS},
- {"with-break-in", no_argument, 0, OPT_WITH_BREAK_IN},
- {"without-break-in", no_argument, 0, OPT_WITHOUT_BREAK_IN},
- {"cosmic-gnugo", no_argument, 0, OPT_COSMIC_GNUGO},
- {"no-cosmic-gnugo", no_argument, 0, OPT_NO_COSMIC_GNUGO},
- {"large-scale", no_argument, 0, OPT_LARGE_SCALE},
- {"no-large-scale", no_argument, 0, OPT_NO_LARGE_SCALE},
- {"options", no_argument, 0, OPT_OPTIONS},
- {"forbid-suicide", no_argument, 0, OPT_FORBID_SUICIDE},
- {"allow-suicide", no_argument, 0, OPT_ALLOW_SUICIDE},
- {"allow-all-suicide", no_argument, 0, OPT_ALLOW_ALL_SUICIDE},
- {"simple-ko", no_argument, 0, OPT_SIMPLE_KO},
- {"no-ko", no_argument, 0, OPT_NO_KO},
- {"positional-superko", no_argument, 0, OPT_POSITIONAL_SUPERKO},
- {"situational-superko", no_argument, 0, OPT_SITUATIONAL_SUPERKO},
- {"capture-all-dead", no_argument, 0, OPT_CAPTURE_ALL_DEAD},
- {"play-out-aftermath", no_argument, 0, OPT_PLAY_OUT_AFTERMATH},
- {"cache-size", required_argument, 0, 'M'},
- {"worms", no_argument, 0, 'w'},
- {"moyo", required_argument, 0, 'm'},
- {"benchmark", required_argument, 0, 'b'},
- {"statistics", no_argument, 0, 'S'},
- {"trace", no_argument, 0, 't'},
- {"seed", required_argument, 0, 'r'},
- {"decide-string", required_argument, 0, OPT_DECIDE_STRING},
- {"decide-connection", required_argument, 0, OPT_DECIDE_CONNECTION},
- {"decide-dragon", required_argument, 0, OPT_DECIDE_OWL},
- {"decide-owl", required_argument, 0, OPT_DECIDE_OWL},
- {"decide-dragon-data", required_argument, 0, OPT_DECIDE_DRAGON_DATA},
- {"decide-semeai", required_argument, 0, OPT_DECIDE_SEMEAI},
- {"decide-tactical-semeai", required_argument, 0, OPT_DECIDE_TACTICAL_SEMEAI},
- {"decide-position", no_argument, 0, OPT_DECIDE_POSITION},
- {"decide-surrounded", required_argument, 0, OPT_DECIDE_SURROUNDED},
- {"decide-eye", required_argument, 0, OPT_DECIDE_EYE},
- {"decide-combination", no_argument, 0, OPT_DECIDE_COMBINATION},
- {"decide-oracle", no_argument, 0, OPT_DECIDE_ORACLE},
- {"nofusekidb", no_argument, 0, OPT_NOFUSEKIDB},
- {"nofuseki", no_argument, 0, OPT_NOFUSEKI},
- {"nojosekidb", no_argument, 0, OPT_NOJOSEKIDB},
- {"debug-influence", required_argument, 0, OPT_DEBUG_INFLUENCE},
- {"showtime", no_argument, 0, OPT_SHOWTIME},
- {"showscore", no_argument, 0, OPT_SHOWSCORE},
- {"score", required_argument, 0, OPT_SCORE},
- {"printsgf", required_argument, 0, OPT_PRINTSGF},
- {"profile-patterns", no_argument, 0, OPT_PROFILE_PATTERNS},
- {"mirror", no_argument, 0, OPT_MIRROR},
- {"mirror-limit", required_argument, 0, OPT_MIRROR_LIMIT},
- {"metamachine", no_argument, 0, OPT_METAMACHINE},
- {"resign-allowed", no_argument, 0, OPT_RESIGN_ALLOWED},
- {"never-resign", no_argument, 0, OPT_NEVER_RESIGN},
- {"monte-carlo", no_argument, 0, OPT_MONTE_CARLO},
- {"mc-games-per-level", required_argument, 0, OPT_MC_GAMES_PER_LEVEL},
- {"mc-patterns", required_argument, 0, OPT_MC_PATTERNS},
- {"mc-list-patterns", no_argument, 0, OPT_MC_LIST_PATTERNS},
- {"mc-load-patterns", required_argument, 0, OPT_MC_LOAD_PATTERNS},
- {NULL, 0, NULL, 0}
+static struct gg_option const long_options[] = {
+ { "mode", required_argument, 0, OPT_MODE },
+ { "replay", required_argument, 0, OPT_REPLAY_GAME },
+ { "quiet", no_argument, 0, OPT_QUIET },
+ { "silent", no_argument, 0, OPT_QUIET },
+ { "gtp-input", required_argument, 0, OPT_GTP_INPUT },
+ { "gtp-connect", required_argument, 0, OPT_GTP_CONNECT },
+ { "gtp-listen", required_argument, 0, OPT_GTP_LISTEN },
+ { "gtp-dump-commands", required_argument, 0, OPT_GTP_DUMP_COMMANDS },
+ { "orientation", required_argument, 0, OPT_GTP_INITIAL_ORIENTATION },
+ { "gtp-initial-orientation",
+ required_argument, 0, OPT_GTP_INITIAL_ORIENTATION },
+ { "gtp-version", required_argument, 0, OPT_GTP_VERSION },
+ { "infile", required_argument, 0, 'l' },
+ { "until", required_argument, 0, 'L' },
+ { "outfile", required_argument, 0, 'o' },
+ { "output-flags", required_argument, 0, 'O' },
+ { "boardsize", required_argument, 0, OPT_BOARDSIZE },
+ { "color", required_argument, 0, OPT_COLOR },
+ { "handicap", required_argument, 0, OPT_HANDICAPSTONES },
+ { "komi", required_argument, 0, OPT_KOMI },
+ { "help", optional_argument, 0, 'h' },
+ { "copyright", no_argument, 0, OPT_SHOWCOPYRIGHT },
+ { "version", no_argument, 0, 'v' },
+ { "allpats", no_argument, 0, 'a' },
+ { "printboard", no_argument, 0, 'T' },
+ { "printeyes", no_argument, 0, 'E' },
+ { "debug", required_argument, 0, 'd' },
+ { "debug-flags", no_argument, 0, OPT_DEBUG_FLAGS },
+ { "depth", required_argument, 0, 'D' },
+ { "backfill-depth", required_argument, 0, 'B' },
+ { "branch-depth", required_argument, 0, OPT_BRANCH_DEPTH },
+ { "backfill2-depth", required_argument, 0, OPT_BACKFILL2_DEPTH },
+ { "break-chain-depth", required_argument, 0, OPT_BREAK_CHAIN_DEPTH },
+ { "superstring-depth", required_argument, 0, OPT_SUPERSTRING_DEPTH },
+ { "fourlib-depth", required_argument, 0, 'F' },
+ { "ko-depth", required_argument, 0, 'K' },
+ { "aa-depth", required_argument, 0, OPT_AA_DEPTH },
+ { "owl-distrust", required_argument, 0, OPT_OWL_DISTRUST },
+ { "owl-branch", required_argument, 0, OPT_OWL_BRANCH },
+ { "owl-reading", required_argument, 0, OPT_OWL_READING },
+ { "owl-node-limit", required_argument, 0, OPT_OWL_NODE_LIMIT },
+ { "print-levels", no_argument, 0, OPT_PRINT_LEVELS },
+ { "level", required_argument, 0, OPT_LEVEL },
+ { "min-level", required_argument, 0, OPT_MIN_LEVEL },
+ { "max-level", required_argument, 0, OPT_MAX_LEVEL },
+ { "limit-search", required_argument, 0, OPT_LIMIT_SEARCH },
+ { "clock", required_argument, 0, OPT_CLOCK_TIME },
+ { "byo-time", required_argument, 0, OPT_CLOCK_BYO_TIME },
+ { "byo-period", required_argument, 0, OPT_CLOCK_BYO_PERIOD },
+ { "autolevel", no_argument, 0, OPT_AUTOLEVEL },
+ { "chinese-rules", no_argument, 0, OPT_CHINESE_RULES },
+ { "japanese-rules", no_argument, 0, OPT_JAPANESE_RULES },
+ { "experimental-semeai", no_argument, 0, OPT_EXPERIMENTAL_SEMEAI },
+ { "experimental-owl-ext", no_argument, 0, OPT_EXPERIMENTAL_OWL_EXT },
+ { "semeai-node-limit", required_argument, 0, OPT_SEMEAI_NODE_LIMIT },
+ { "experimental-connections", no_argument, 0, OPT_EXPERIMENTAL_CONNECTIONS },
+ { "standard-connections", no_argument, 0, OPT_STANDARD_CONNECTIONS },
+ { "standard-semeai", no_argument, 0, OPT_STANDARD_SEMEAI },
+ { "alternate-connections", no_argument, 0, OPT_ALTERNATE_CONNECTIONS },
+ { "with-break-in", no_argument, 0, OPT_WITH_BREAK_IN },
+ { "without-break-in", no_argument, 0, OPT_WITHOUT_BREAK_IN },
+ { "cosmic-gnugo", no_argument, 0, OPT_COSMIC_GNUGO },
+ { "no-cosmic-gnugo", no_argument, 0, OPT_NO_COSMIC_GNUGO },
+ { "large-scale", no_argument, 0, OPT_LARGE_SCALE },
+ { "no-large-scale", no_argument, 0, OPT_NO_LARGE_SCALE },
+ { "options", no_argument, 0, OPT_OPTIONS },
+ { "forbid-suicide", no_argument, 0, OPT_FORBID_SUICIDE },
+ { "allow-suicide", no_argument, 0, OPT_ALLOW_SUICIDE },
+ { "allow-all-suicide", no_argument, 0, OPT_ALLOW_ALL_SUICIDE },
+ { "simple-ko", no_argument, 0, OPT_SIMPLE_KO },
+ { "no-ko", no_argument, 0, OPT_NO_KO },
+ { "positional-superko", no_argument, 0, OPT_POSITIONAL_SUPERKO },
+ { "situational-superko", no_argument, 0, OPT_SITUATIONAL_SUPERKO },
+ { "capture-all-dead", no_argument, 0, OPT_CAPTURE_ALL_DEAD },
+ { "play-out-aftermath", no_argument, 0, OPT_PLAY_OUT_AFTERMATH },
+ { "cache-size", required_argument, 0, 'M' },
+ { "worms", no_argument, 0, 'w' },
+ { "moyo", required_argument, 0, 'm' },
+ { "benchmark", required_argument, 0, 'b' },
+ { "statistics", no_argument, 0, 'S' },
+ { "trace", no_argument, 0, 't' },
+ { "seed", required_argument, 0, 'r' },
+ { "decide-string", required_argument, 0, OPT_DECIDE_STRING },
+ { "decide-connection", required_argument, 0, OPT_DECIDE_CONNECTION },
+ { "decide-dragon", required_argument, 0, OPT_DECIDE_OWL },
+ { "decide-owl", required_argument, 0, OPT_DECIDE_OWL },
+ { "decide-dragon-data", required_argument, 0, OPT_DECIDE_DRAGON_DATA },
+ { "decide-semeai", required_argument, 0, OPT_DECIDE_SEMEAI },
+ { "decide-tactical-semeai", required_argument, 0, OPT_DECIDE_TACTICAL_SEMEAI },
+ { "decide-position", no_argument, 0, OPT_DECIDE_POSITION },
+ { "decide-surrounded", required_argument, 0, OPT_DECIDE_SURROUNDED },
+ { "decide-eye", required_argument, 0, OPT_DECIDE_EYE },
+ { "decide-combination", no_argument, 0, OPT_DECIDE_COMBINATION },
+ { "decide-oracle", no_argument, 0, OPT_DECIDE_ORACLE },
+ { "nofusekidb", no_argument, 0, OPT_NOFUSEKIDB },
+ { "nofuseki", no_argument, 0, OPT_NOFUSEKI },
+ { "nojosekidb", no_argument, 0, OPT_NOJOSEKIDB },
+ { "debug-influence", required_argument, 0, OPT_DEBUG_INFLUENCE },
+ { "showtime", no_argument, 0, OPT_SHOWTIME },
+ { "showscore", no_argument, 0, OPT_SHOWSCORE },
+ { "score", required_argument, 0, OPT_SCORE },
+ { "printsgf", required_argument, 0, OPT_PRINTSGF },
+ { "profile-patterns", no_argument, 0, OPT_PROFILE_PATTERNS },
+ { "mirror", no_argument, 0, OPT_MIRROR },
+ { "mirror-limit", required_argument, 0, OPT_MIRROR_LIMIT },
+ { "metamachine", no_argument, 0, OPT_METAMACHINE },
+ { "resign-allowed", no_argument, 0, OPT_RESIGN_ALLOWED },
+ { "never-resign", no_argument, 0, OPT_NEVER_RESIGN },
+ { "monte-carlo", no_argument, 0, OPT_MONTE_CARLO },
+ { "mc-games-per-level", required_argument, 0, OPT_MC_GAMES_PER_LEVEL },
+ { "mc-patterns", required_argument, 0, OPT_MC_PATTERNS },
+ { "mc-list-patterns", no_argument, 0, OPT_MC_LIST_PATTERNS },
+ { "mc-load-patterns", required_argument, 0, OPT_MC_LOAD_PATTERNS },
+ { NULL, 0, NULL, 0 }