chisbread / chis Goto Github PK
View Code? Open in Web Editor NEWgomoku AI, 年久失修 仅作为纪念
License: Mozilla Public License 2.0
gomoku AI, 年久失修 仅作为纪念
License: Mozilla Public License 2.0
我这边是win7+vs2012,无奈您的项目是13的,于是我就手动改了一下项目文件;
不过之后vs还是跟我报错,说有语法错误:
`struct config {
size_t SIZE = 15;//棋盘大小
int RULE = 0;//规则类型(只支持freestyle
//time ms
time_t search_time = 29900;//一次搜索时间
time_t timeout_match = 180000;//总搜索时间上限
time_t time_left = 180000;//剩下的时间
size_t hash_max_size = 1024*100;//100MB
size_t search_depth = 8;
};`
比如上面这段是在chis_type.h中的
我平常主要使用Java和C#,所以对C++不甚了解——但是在声明的同时直接赋值真的可以吗?
如果您确实就是这样也可以编译,那应该就是我的ide问题了;
如果确实这块有问题的话,希望您能告诉我改正方法
编译工程后得到的可执行文件,用piskvork调用貌似不走子...不知道是不是我使用方法错误
但您在gomocup上的CHIS程序是可用的。
try to compile in linux using g++
the following line has error(in chis_move.cpp)
std::swap(moves,
b.get_turn() == BLK ?
b.get_pruned_moves_black_forvct() :
b.get_pruned_moves_white_forvct());
it try to swap variable and return of function. does it really get through the visual c++ compiler?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.