haskell-games

所属分类:游戏
开发工具:Haskell
文件大小:0KB
下载次数:0
上传日期:2019-08-24 07:18:12
上 传 者sh-1993
说明:  Haskell中的通用游戏玩家,
(General game player in Haskell,)

文件列表:
ChangeLog.md (55, 2019-08-24)
LICENSE (1523, 2019-08-24)
Setup.hs (46, 2019-08-24)
app/ (0, 2019-08-24)
app/Main.hs (824, 2019-08-24)
package.yaml (1395, 2019-08-24)
src/ (0, 2019-08-24)
src/Alphabeta.hs (4374, 2019-08-24)
src/Alphabeta0.hs (3937, 2019-08-24)
src/AlphabetaOriginal.hs (4561, 2019-08-24)
src/Cache.hs (5490, 2019-08-24)
src/Connect4.hs (5959, 2019-08-24)
src/MCTS.hs (17912, 2019-08-24)
src/MCTS2.hs (17709, 2019-08-24)
src/Minmax.hs (3943, 2019-08-24)
src/Nim.hs (1382, 2019-08-24)
src/NimEuclidean.hs (2416, 2019-08-24)
src/NimFibonacci.hs (2333, 2019-08-24)
src/SolverDefs.hs (6238, 2019-08-24)
src/TTT.hs (2953, 2019-08-24)
src/UTT.hs (5691, 2019-08-24)
src/Xorshift64.hs (850, 2019-08-24)
stack.yaml (2133, 2019-08-24)
test/ (0, 2019-08-24)
test/Spec.hs (63, 2019-08-24)

# General game solver in Haskell Games are instances of the class `GameState`. The minimal complete definition for this class must implement the following function: * `player` - the player whose current turn it is (either `Maximizer` or `Minimizer`). * `terminal` - this must be set to `Nothing` for all terminal nodes, and to `Just val` where `val` is the outcome of the game. * `actions` - these is a list of pairs `(name, result)` where `name` is the move's name, and `branch` is the is sub branch of the game that is reached with the move. All instances of `GameState` are also `Show`, and their `show` value is a presentation of the game's state to the user. Better documentation will perhaps happen some day in the future.

近期下载者

相关文件


收藏者