Ticket #108: help-msg.patch

File help-msg.patch, 8.6 KB (added by alain, 6 years ago)

ok, the patch have been replaced by a new one. --aftermath and --capture-all-dead are moved outside "Scoring options"

  • ./interface/main.c

    old new  
    917917      case OPT_PRINT_LEVELS: 
    918918        { 
    919919          int lev; 
    920           for (lev = 10; lev > 0; lev--) 
     920          for (lev = 12; lev >= 0; lev--) 
    921921            set_depth_values(lev, 1); 
    922922        } 
    923923        return EXIT_SUCCESS; 
     
    13971397 
    13981398#define USAGE "\n\ 
    13991399Usage: gnugo [-opts]\n\ 
    1400 Examples:\ 
     1400\n\ 
     1401Examples:\n\ 
    14011402  gnugo --mode gtp --level 5\n\ 
    14021403         To play against gnugo in level 5 from a GTP client\n\ 
    14031404  gnugo --mode ascii -l game.sgf -L 123\n\ 
     
    14101411                         or 'gtp'). Default is ASCII.\n\ 
    14111412                         If no terminal is detected GMP (Go Modem Protocol)\n\ 
    14121413                         will be assumed.\n\ 
    1413        --quiet          Don't print copyright and informational messages\n\ 
     1414       --quiet  --silent Don't print copyright and informational messages\n\ 
    14141415       --level <amount>  strength (default %d)\n\ 
    14151416       --never-resign    Forbid GNU Go to resign\n\ 
    14161417       --resign-allowed  Allow resignation (default)\n\ 
    1417        --gtp-input <file>Read gtp commands from file instead of stdin\n\ 
    1418        --gtp-connect [HOST:]PORT\n\ 
    1419                          Connect to given host (127.0.0.1 if omitted) and port\n\ 
    1420                          and receive GTP commands on the established connection\n\ 
    1421        --gtp-listen [HOST:]PORT\n\ 
    1422                          Wait for the first TCP/IP connection on the given port\n\ 
    1423                          (if HOST is specified, only to that host)\n\ 
    14241418   -l, --infile <file>   Load name sgf file\n\ 
    14251419   -L, --until <move>    Stop loading just before move is played. <move>\n\ 
    14261420                         can be the move number or location (eg L10).\n\ 
    14271421   -o, --outfile <file>  Write sgf output to file\n\ 
    1428    --printsgf <file>     Write position as a diagram to file (use with -l)\n\ 
     1422       --printsgf <file>     Write position as a diagram to file (use with -l)\n\ 
     1423\n\ 
     1424Scoring:\n\ 
     1425   --score estimate      estimate score at loaded position\n\ 
     1426   --score finish        generate moves to finish game, then score\n\ 
     1427   --score aftermath     generate moves to finish, use best algorithm\n\ 
     1428\n\ 
    14291429" 
    14301430 
    14311431#define USAGE1 "\ 
     1432Game Options:\n\ 
     1433Used with --mode ascii (or other modes for non-interactive settings)\n\ 
     1434   --boardsize num   Set the board size to use (%d--%d)\n\ 
     1435   --color <color>   Choose your color ('black' or 'white')\n\ 
     1436   --handicap <num>  Set the number of handicap stones (0--%d)\n\ 
     1437   --komi <num>      Set the komi\n\ 
     1438   --clock <sec>     Initialize the timer.\n\ 
     1439   --byo-time <sec>  Initialize the byo-yomi timer.\n\ 
     1440   --byo-period <stones>  Initialize the byo-yomi period.\n\ 
     1441\n\ 
     1442   --japanese-rules     (default)\n\ 
     1443   --chinese-rules\n\ 
     1444   --allow-suicide      (new-zeland rules)\n\ 
     1445\n\ 
     1446   --play-out-aftermath\n\ 
     1447   --capture-all-dead\n\ 
     1448\n\ 
    14321449   --min-level <amount>         minimum level for adjustment schemes\n\ 
    14331450   --max-level <amount>         maximum level for adjustment schemes\n\ 
    14341451   --autolevel                  adapt gnugo level during game to respect\n\ 
    14351452                                the time specified by --clock <sec>.\n\ 
     1453\n\ 
     1454Connection options\n\ 
     1455   --gtp-input <file>Read gtp commands from file instead of stdin\n\ 
     1456   --gtp-connect [HOST:]PORT\n\ 
     1457                     Connect to given host (127.0.0.1 if omitted) and port\n\ 
     1458                     and receive GTP commands on the established connection\n\ 
     1459   --gtp-listen [HOST:]PORT\n\ 
     1460                     Wait for the first TCP/IP connection on the given port\n\ 
     1461                     (if HOST is specified, only to that host)\n\ 
     1462   --gtp-version\n\ 
     1463\n\ 
     1464" 
     1465 
     1466#define USAGE2 "\ 
    14361467Experimental options:\n\ 
    14371468   --with-break-in         use the break-in code (on at level 10 by default)\n\ 
    14381469   --without-break-in      do not use the break-in code\n\ 
     
    14451476   --nojosekidb            turn off joseki database\n\ 
    14461477   --mirror                try to play mirror go\n\ 
    14471478   --mirror-limit <n>      stop mirroring when n stones on board\n\n\ 
    1448 Scoring:\n\ 
    1449    --score estimate        estimate score at loaded position\n\ 
    1450    --score finish          generate moves to finish game, then score\n\ 
    1451    --score aftermath       generate moves to finish, use best algorithm\n\ 
     1479   --alternate-connections\n\ 
     1480   --experimental-connections\n\ 
     1481   --experimental-owl-ext\n\ 
     1482   --experimental-semeai\n\ 
     1483   --standard-connections\n\ 
     1484   --standard-semeai\n\ 
     1485   --oracle                Read the documentation\n\ 
    14521486\n\ 
    14531487Cache size (higher=more memory usage, faster unless swapping occurs):\n\ 
    14541488   -M, --cache-size <megabytes>  RAM cache for read results (default %4.1f Mb)\n\ 
    14551489\n\ 
    1456 " 
    1457  
    1458 #define USAGE2 "\ 
    1459 Game Options: (--mode ascii)\n\ 
    1460        --boardsize num   Set the board size to use (%d--%d)\n\ 
    1461        --color <color>   Choose your color ('black' or 'white')\n\ 
    1462        --handicap <num>  Set the number of handicap stones (0--%d)\n\ 
    1463        --komi <num>      Set the komi\n\ 
    1464        --clock <sec>     Initialize the timer.\n\ 
    1465        --byo-time <sec>  Initialize the byo-yomi timer.\n\ 
    1466        --byo-period <stones>  Initialize the byo-yomi period.\n\ 
    1467 \n\ 
    14681490Informative Output:\n\ 
    14691491   -v, --version         Display the version and copyright of GNU Go\n\ 
    14701492   --options             Display configure options\n\ 
     
    14741496\n\ 
    14751497" 
    14761498 
    1477  
    14781499#define COPYRIGHT \ 
    14791500"Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005 and 2006\n\ 
    14801501by the Free Software Foundation, Inc.\n\ 
     
    15021523       --debug-flags             print the debug flags for previous item\n\ 
    15031524   -w, --worms                   print worm and dragon data and move reasons\n\ 
    15041525   -m, --moyo <level>            moyo debugging, show moyo board\n\ 
    1505        --debuginfluence <move>   print influence map after making a move\n\ 
     1526       --debug-influence <move>   print influence map after making a move\n\ 
    15061527   -b, --benchmark num           benchmarking mode - can be used with -l\n\ 
    15071528   -S, --statistics              print statistics (for debugging purposes)\n\n\ 
    15081529       --profile-patterns        print statistics for pattern usage\n\ 
     
    15151536       --showscore               print estimated score\n\ 
    15161537   -r, --seed number             set random number seed\n\ 
    15171538       --gtp-dump-commands <file>dump commands received in GTP mode\n\ 
     1539       --gtp-initial-orientation\n\ 
     1540       --orientation\n\ 
     1541\n\ 
    15181542" 
    15191543 
    15201544#define USAGE_DEBUG2 "\ 
    15211545Options affecting depth settings and playing strength:\n\ 
     1546   --print-levels        shows all this values for levels 12 to 0\n\ 
     1547\n\ 
     1548   Default values for the default level (%d):\n\ 
    15221549   -D, --depth <depth>          deep reading cutoff (default %d)\n\ 
    15231550   -B, --backfill-depth <depth> deep reading cutoff (default %d)\n\ 
    15241551   -F, --fourlib-depth <depth>  deep reading cutoff (default %d)\n\ 
     
    15321559   --owl-branch <depth>         owl branching depth (default %d)\n\ 
    15331560   --owl-reading <depth>        owl reading depth (default %d)\n\ 
    15341561   --owl-node-limit <limit>     max nodes for owl reading (default %d)\n\ 
     1562   --semeai-node-limit <limit>  max nodes for semeai reading (default %d)\n\ 
     1563\n\ 
    15351564Options providing detailed reading results etc.:\n\ 
    15361565   --decide-string <string>     can this string live? (try with -o)\n\ 
    15371566   --decide-connection <str/str> can these strings connect? (try with -o)\n\ 
    15381567   --decide-dragon <dragon>     can this dragon live? (try with -o or -t)\n\ 
     1568   --decide-dragon-data\n\ 
     1569   --decide-owl\n\ 
    15391570   --decide-position            evaluate all dragons (try with -o or -t)\n\ 
    15401571   --decide-eye <string>        evaluate the eye\n\ 
    15411572   --decide-combination         search for combination attack (try with -o)\n\ 
    1542    --genmove <color>            generate a move for color\n\ 
     1573   --decide-oracle\n\ 
     1574   --decide-semeai\n\ 
     1575   --decide-tactical-semeai\n\ 
     1576   --decide-surrounded\n\ 
     1577   --limit-search\n\ 
     1578\n\ 
    15431579" 
    15441580 
    15451581 
     
    15511587show_help(void) 
    15521588{ 
    15531589  printf(USAGE, DEFAULT_LEVEL); 
    1554   printf(USAGE1, DEFAULT_MEMORY <= 0 ? reading_cache_default_size() : 
     1590  printf(USAGE1, MIN_BOARD, MAX_BOARD, MAX_HANDICAP); 
     1591  printf(USAGE2, DEFAULT_MEMORY <= 0 ? reading_cache_default_size() : 
    15551592         (float) DEFAULT_MEMORY); 
    1556   printf(USAGE2, MIN_BOARD, MAX_BOARD, MAX_HANDICAP); 
    15571593} 
    15581594 
    15591595 
    15601596static void 
    15611597show_debug_help(void) 
    15621598{ 
     1599  set_depth_values(DEFAULT_LEVEL,0); 
    15631600  printf(USAGE_DEBUG USAGE_DEBUG2,  
    1564          depth, backfill_depth, fourlib_depth, ko_depth, branch_depth, 
     1601         DEFAULT_LEVEL, depth, backfill_depth, fourlib_depth, ko_depth, branch_depth, 
    15651602         backfill2_depth, break_chain_depth, superstring_depth, aa_depth,  
    15661603         owl_distrust_depth, owl_branch_depth, 
    1567          owl_reading_depth, owl_node_limit); 
     1604         owl_reading_depth, owl_node_limit, semeai_node_limit); 
    15681605} 
    15691606 
    15701607static void