簡體   English   中英

C#算法博弈論API

[英]C# Algorithmic Game Theory API

我最近來到了Gambit - http://www.gambit-project.org/doc/index.html--一個C ++算法游戲理論API。

有人知道.NET游戲理論庫嗎?

我知道這需要一點時間,但您可以下載您引用的C ++項目的源代碼並將其編譯為可在C#項目中引用的DLL。 此鏈接包含有關此操作的信息。

我不知道任何現有的圖書館。

如果你正在進行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和KorfMaxN算法

我之前已經實現了這些,它們非常簡單。 它應該在.Net中非常簡單。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM