Ticket #108: help-msg.patch
| File help-msg.patch, 8.6 KB (added by alain, 6 years ago) |
|---|
-
./interface/main.c
old new 917 917 case OPT_PRINT_LEVELS: 918 918 { 919 919 int lev; 920 for (lev = 1 0; lev >0; lev--)920 for (lev = 12; lev >= 0; lev--) 921 921 set_depth_values(lev, 1); 922 922 } 923 923 return EXIT_SUCCESS; … … 1397 1397 1398 1398 #define USAGE "\n\ 1399 1399 Usage: gnugo [-opts]\n\ 1400 Examples:\ 1400 \n\ 1401 Examples:\n\ 1401 1402 gnugo --mode gtp --level 5\n\ 1402 1403 To play against gnugo in level 5 from a GTP client\n\ 1403 1404 gnugo --mode ascii -l game.sgf -L 123\n\ … … 1410 1411 or 'gtp'). Default is ASCII.\n\ 1411 1412 If no terminal is detected GMP (Go Modem Protocol)\n\ 1412 1413 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\ 1414 1415 --level <amount> strength (default %d)\n\ 1415 1416 --never-resign Forbid GNU Go to resign\n\ 1416 1417 --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\1424 1418 -l, --infile <file> Load name sgf file\n\ 1425 1419 -L, --until <move> Stop loading just before move is played. <move>\n\ 1426 1420 can be the move number or location (eg L10).\n\ 1427 1421 -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\ 1424 Scoring:\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\ 1429 1429 " 1430 1430 1431 1431 #define USAGE1 "\ 1432 Game Options:\n\ 1433 Used 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\ 1432 1449 --min-level <amount> minimum level for adjustment schemes\n\ 1433 1450 --max-level <amount> maximum level for adjustment schemes\n\ 1434 1451 --autolevel adapt gnugo level during game to respect\n\ 1435 1452 the time specified by --clock <sec>.\n\ 1453 \n\ 1454 Connection 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 "\ 1436 1467 Experimental options:\n\ 1437 1468 --with-break-in use the break-in code (on at level 10 by default)\n\ 1438 1469 --without-break-in do not use the break-in code\n\ … … 1445 1476 --nojosekidb turn off joseki database\n\ 1446 1477 --mirror try to play mirror go\n\ 1447 1478 --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\ 1452 1486 \n\ 1453 1487 Cache size (higher=more memory usage, faster unless swapping occurs):\n\ 1454 1488 -M, --cache-size <megabytes> RAM cache for read results (default %4.1f Mb)\n\ 1455 1489 \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\1468 1490 Informative Output:\n\ 1469 1491 -v, --version Display the version and copyright of GNU Go\n\ 1470 1492 --options Display configure options\n\ … … 1474 1496 \n\ 1475 1497 " 1476 1498 1477 1478 1499 #define COPYRIGHT \ 1479 1500 "Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005 and 2006\n\ 1480 1501 by the Free Software Foundation, Inc.\n\ … … 1502 1523 --debug-flags print the debug flags for previous item\n\ 1503 1524 -w, --worms print worm and dragon data and move reasons\n\ 1504 1525 -m, --moyo <level> moyo debugging, show moyo board\n\ 1505 --debug influence <move> print influence map after making a move\n\1526 --debug-influence <move> print influence map after making a move\n\ 1506 1527 -b, --benchmark num benchmarking mode - can be used with -l\n\ 1507 1528 -S, --statistics print statistics (for debugging purposes)\n\n\ 1508 1529 --profile-patterns print statistics for pattern usage\n\ … … 1515 1536 --showscore print estimated score\n\ 1516 1537 -r, --seed number set random number seed\n\ 1517 1538 --gtp-dump-commands <file>dump commands received in GTP mode\n\ 1539 --gtp-initial-orientation\n\ 1540 --orientation\n\ 1541 \n\ 1518 1542 " 1519 1543 1520 1544 #define USAGE_DEBUG2 "\ 1521 1545 Options 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\ 1522 1549 -D, --depth <depth> deep reading cutoff (default %d)\n\ 1523 1550 -B, --backfill-depth <depth> deep reading cutoff (default %d)\n\ 1524 1551 -F, --fourlib-depth <depth> deep reading cutoff (default %d)\n\ … … 1532 1559 --owl-branch <depth> owl branching depth (default %d)\n\ 1533 1560 --owl-reading <depth> owl reading depth (default %d)\n\ 1534 1561 --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\ 1535 1564 Options providing detailed reading results etc.:\n\ 1536 1565 --decide-string <string> can this string live? (try with -o)\n\ 1537 1566 --decide-connection <str/str> can these strings connect? (try with -o)\n\ 1538 1567 --decide-dragon <dragon> can this dragon live? (try with -o or -t)\n\ 1568 --decide-dragon-data\n\ 1569 --decide-owl\n\ 1539 1570 --decide-position evaluate all dragons (try with -o or -t)\n\ 1540 1571 --decide-eye <string> evaluate the eye\n\ 1541 1572 --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\ 1543 1579 " 1544 1580 1545 1581 … … 1551 1587 show_help(void) 1552 1588 { 1553 1589 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() : 1555 1592 (float) DEFAULT_MEMORY); 1556 printf(USAGE2, MIN_BOARD, MAX_BOARD, MAX_HANDICAP);1557 1593 } 1558 1594 1559 1595 1560 1596 static void 1561 1597 show_debug_help(void) 1562 1598 { 1599 set_depth_values(DEFAULT_LEVEL,0); 1563 1600 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, 1565 1602 backfill2_depth, break_chain_depth, superstring_depth, aa_depth, 1566 1603 owl_distrust_depth, owl_branch_depth, 1567 owl_reading_depth, owl_node_limit );1604 owl_reading_depth, owl_node_limit, semeai_node_limit); 1568 1605 } 1569 1606 1570 1607 static void
