[英]C# Algorithmic Game Theory API
我不知道任何现有的图书馆。
如果你正在进行2人游戏,那么minimax算法很容易实现。 以下伪代码是从Wiki页面中抄袭的:
function integer minimax(node, depth)
if node is a terminal node or depth <= 0:
return the heuristic value of node
α = -∞
for child in node: # evaluation is identical for both players
α = max(α, -minimax(child, depth-1))
return α
如果你做的超过2个玩家,那么就有Sturtevant和Korf的MaxN算法 。
我之前已经实现了这些,它们非常简单。 它应该在.Net中非常简单。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.