colingogogo / gobang_ai Goto Github PK
View Code? Open in Web Editor NEW基于博弈树α-β剪枝搜索的五子棋AI
基于博弈树α-β剪枝搜索的五子棋AI
请问一下,这个有什么视频教程可以学的吗?
三层搜索在中盘需要等待的时间还是有点长
解释很详细!
三层搜索到中期,五六万次搜索,剪枝只有两三百
请各位大佬批评指点
原代码
def has_neightnor(pt):
for i in range(-1, 2):
for j in range(-1, 2):
if i == 0 and j == 0:
continue
if (pt[0] + i, pt[1]+j) in list3:
return True
return False
中for i in range(-1, 2):
以及 for j in range(-1, 2):
是看棋子两侧(如右下)2格以及另外两侧(如左上)1格有没有棋子。
是否应该改成
for i in range(-2, 2):
for j in range(-2, 2):
呢?
谢谢
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.