⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 go_conf.h

📁 uct算法
💻 H
字号:
#ifndef _GO_CONF_#define _GO_CONF_typedef unsigned int uint;typedef unsigned long long uint64;typedef unsigned int uint32;typedef unsigned short uint16;typedef unsigned char uint8;// constants// board parametersconst float default_komi       = 0.5;const uint default_board_size  = 9;const bool playout_print       = false;// mercy rule//const bool use_mercy_rule      = false;const uint mercy_threshold     = 25;// uct parametersconst uint initial_value                 = 0;const uint initial_bias                  = 0;const float mature_bias_threshold         = initial_bias + 2;const float explore_rate                  = 1.0;const uint  uct_max_depth                 = 1000;// how many memory would be useconst uint  uct_node_memory               = 40;const uint  uct_max_nodes                 = uct_node_memory * 1000000 / 20;const uint  uct_max_level       	  = 19;extern float time_per_move;const uint  uct_genmove_playout_cnt       = 100000;const float resign_value                  = 0.45;const float print_visit_threshold_base    = 500.0;const float print_visit_threshold_parent  = 0.02;// consistency checking / debugging control//#define DEBUG#ifdef NDEBUG//#error "NDEBUG not allowed."#endif#ifndef DEBUG//#error "DEBUG should be defined."#endifconst bool pm_ac              = false;const bool stack_ac           = false;const bool paranoic           = false;const bool board_ac           = false;const bool player_ac          = paranoic;const bool color_ac           = paranoic;const bool coord_ac           = paranoic;const bool vertex_ac          = paranoic;const bool nbr_cnt_ac         = paranoic;const bool chain_ac           = paranoic;const bool board_empty_v_ac   = paranoic;const bool board_hash_ac      = paranoic;const bool board_color_at_ac  = paranoic;const bool board_nbr_cnt_ac   = paranoic;const bool chain_at_ac        = paranoic;const bool chain_next_v_ac    = paranoic;const bool chains_ac          = paranoic;const bool playout_ac         = false;const bool aaf_ac             = false;const bool uct_ac             = false;const bool tree_ac            = false;const bool pool_ac            = false;const bool gtp_ac             = false;#endif // _GO_CONF_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -