[英]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.