MCPcopy Create free account
hub / github.com/dhbloo/rapfi / addPlayOptions

Method addPlayOptions

Rapfi/command/argutils.cpp:118–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116#ifndef NO_COMMAND_MODULES
117
118void Command::addPlayOptions(cxxopts::Options &options)
119{
120 options.add_options("play-general") //
121 ("s,boardsize", "Board size in [5,22]", cxxopts::value<int>()->default_value("15")) //
122 ("r,rule",
123 "One of [freestyle, standard, renju] rule",
124 cxxopts::value<std::string>()->default_value("freestyle")) //
125 ("t,thread",
126 "Number of search threads to use for searching balanced moves",
127 cxxopts::value<size_t>()->default_value(std::to_string(Config::DefaultThreadNum))) //
128 ("hashsize",
129 "Hash size of the transposition table (in MB)",
130 cxxopts::value<size_t>()->default_value("128")) //
131 ("q,no-search-message",
132 "Disable message output during search") //
133 ;
134}
135
136void Command::addOpengenOptions(cxxopts::Options &options, const Opening::OpeningGenConfig &cfg)
137{

Callers

nothing calls this directly

Calls 2

add_optionsMethod · 0.80
default_valueMethod · 0.80

Tested by

no test coverage detected