qq456cvb / doudizhu-baseline

1 stars 3 forks source link

你好,这个项目我下载编译后,为什么无法进行游戏呢 #1

Closed peterwangx closed 3 years ago

qq456cvb commented 4 years ago

编译main.cpp,跑main 函数 会进行模拟对局和打印胜负统计。

peterwangx commented 4 years ago

    //int total = argc > 1 ? atoi(argv[1]) : 1000;     //n_threads = argc > 2 ? atoi(argv[2]) : 8;     //max_d = argc > 3 ? atoi(argv[3]) : 50;     //max_iter = argc > 4 ? atoi(argv[4]) : 250;     int total = argc > 1 ? atoi(argv[1]) : 2;     n_threads = argc > 2 ? atoi(argv[2]) : 4;     max_d = argc > 3 ? atoi(argv[3]) : 10;     max_iter = argc > 4 ? atoi(argv[4]) : 20;

为了缩减时间,我把训练的次数减少了,目的是希望能快速的玩游戏进行测试,但是我模拟完对局后,不知道怎么才能和机器对玩。 下面是模拟输出结果:

seeding 2395931730 2, 0 [||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||]  0

------------------ 原始邮件 ------------------ 发件人: "Neil You"<notifications@github.com>; 发送时间: 2020年8月1日(星期六) 晚上9:58 收件人: "qq456cvb/doudizhu-baseline"<doudizhu-baseline@noreply.github.com>; 抄送: "hywood"<luoqian126@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [qq456cvb/doudizhu-baseline] 你好,这个项目我下载编译后,为什么无法进行游戏呢 (#1)

编译main.cpp,跑main 函数 会进行模拟对局和打印胜负统计。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

qq456cvb commented 4 years ago

目前这个是用来测试AI之间对打的,你可以自己拓展一下Player这个类的respond函数,来从命令行读取出牌操作。