Requirements
=====
* Python 3.6.x
* Install required packages `pip install -r requirements.txt`
* Windows/Linux/MacOS should all work (submit issue if not)
Usage
=====
Change the `command` in `command.yml` to use your own Go program command (Only leela zero supported now), you can also use `--command` option to override the config.
`./run.py` will run all tests
`./run.py -h` for help
Example output:
```
Boods-MacBook-Pro:go-test Bood$ ./run.py
Command: /Users/Bood/mypro/leela-zero/bin/leelaz -d -t 1 -p 1600 --noponder -w /Users/Bood/mypro/leela-zero/bin/af9
ladder1.sgf
[FAIL] C17 -> 254 (V: 39.95%) (N: 8.68%) PV: C17 B15 E18 D17 D18 B17 B18 C16 C18 F18 A17 B16 P7 O7
ladder2.sgf
[PASS] E1 -> 893 (V: 40.28%) (N: 42.68%) PV: E1 G4 E9 E10 F10 E11 D9 C12 D14 F9 C9
ladder3.sgf
[FAIL] P11 -> 708 (V: 57.36%) (N: 0.17%) PV: P11 N11 O12 O13 N12 M12 N13 N14 M13 L13 M14 M15 L14 K14 L15 L16 K15
ladder4.sgf
[PASS] C16 -> 660 (V: 27.50%) (N: 0.09%) PV: C16 P6 D17 P2 Q2 F3 P3 O3
ladder5.sgf
[PASS] O7 -> 792 (V: 45.98%) (N: 23.54%) PV: O7 J6 P6 O5 C11 C9 E12 E13 F13
lifedeath1.sgf
[FAIL] M9 -> 1318 (V: 97.09%) (N: 61.30%) PV: M9 S18 T18 S19 R19 S16 T19 S15 S14 R14 T15 Q16 T16 Q15
longdragon1.sgf
[FAIL] D8 -> 524 (V: 96.66%) (N: 6.78%) PV: D8 D9 D7 C9 E9 D10 F9 G9
longdragon2.sgf
[FAIL] N5 -> 754 (V: 94.61%) (N: 0.40%) PV: N5 L5 O6 T2 L17 J5 K18 K16
```
Add tests
=========
1. Put your sgf file in `sgf` dir, e.g. `ladder6.sgf`
2. Update `config.yml` with an entry in `tests` section, with following information:
* `name` test name
* `sgf` file name
* `group` test group it belongs to
* `number` which move number to start with
* `move` who's turn it is now
* test condition, one of the following (only one will be used):
- `yes_move`: a list of moves it should choose, fail otherwise
- `no_move`: a list of moves it should NOT choose, fail if the choosed move is in the list
- `max_win_rate`: upper threshold of win rate of value network, fail if the program thinks it's higher
3. Verify your added test with `./run.py --case test_name`
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
基于场景的围棋程序强度测试工具_Python_下载.zip (54个子文件)
go-test-master
LICENSE 1KB
run.py 5KB
command.yml 120B
requirements.txt 13B
.gitignore 1KB
config.yml 7KB
README.md 2KB
sgf
ladder7.sgf 334B
somebot-godiva-2.sgf 5KB
jinduan_LZ.sgf 1012B
LZ_Golaxy_6.sgf 584B
ladder_misread_by_cut_52_20180308.sgf 2KB
娱乐版围棋执黑中盘胜alphaleela_20180308.sgf 1KB
误逃征子_20180308.sgf 333B
12496265-125-RoyalZero-lizf123.sgf 8KB
zen7_LZ.sgf 1KB
ladder19.sgf 350B
大猪嘴.sgf 1KB
11990416-120-Bifron-RoyalZero.sgf 8KB
打劫走成净死.sgf 2KB
lifedeath1.sgf 1KB
预判征子.sgf 467B
ladder5.sgf 852B
endgame1.sgf 2KB
低K官子看错输棋.sgf 2KB
10b-545权重征子bug.sgf 2KB
ladder1.sgf 625B
2018贺岁杯第二局_一力辽_柯洁.sgf 13KB
ladder2.sgf 632B
largegroup_atari1.sgf 4KB
2017围丙第二轮_胡然闵_杨冬.sgf 977B
LZ1060_杨冬.sgf 2KB
ladder6.sgf 1KB
zen7-LZaf9.sgf 2KB
ladder4.sgf 200B
zen7_lz_largegroup_20180306.sgf 2KB
AGZ_40b_017.sgf 2KB
aq_lz_33point_ladder.sgf 272B
隐忍黑衣人_alphaleela_20180307.sgf 2KB
ladder17_high_po.sgf 350B
双活1.sgf 1KB
大斜征子.sgf 190B
ladder14.sgf 5KB
陈文政_LeelaZero_20180315.sgf 958B
12383186-296-inelasticneutron-RoyalZero.sgf 18KB
毒奶菇_看不见叫吃_20180325.sgf 2KB
第8届姜堰三国女子擂台赛第5局_李赫_金多瑛.sgf 9KB
endgame2.sgf 16KB
看错征子_20180308.sgf 1KB
ladder8.马天放.2018.3.7.sgf 2KB
MaTianFang_LZ_20180227.sgf 651B
2018贺岁杯第二局_一力辽_柯洁2.sgf 14KB
ladder3.sgf 588B
lifedeath2.sgf 2KB
共 54 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9149
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 10、安徽省大学生学科和技能竞赛A、B类项目列表(2019年版).xlsx
- 9、教育主管部门公布学科竞赛(2015版)-方喻飞
- C语言-leetcode题解之83-remove-duplicates-from-sorted-list.c
- C语言-leetcode题解之79-word-search.c
- C语言-leetcode题解之78-subsets.c
- C语言-leetcode题解之75-sort-colors.c
- C语言-leetcode题解之74-search-a-2d-matrix.c
- C语言-leetcode题解之73-set-matrix-zeroes.c
- 树莓派物联网智能家居基础教程
- YOLOv5深度学习目标检测基础教程
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功