rogue:玩魔术的AI

时间:2021-05-09 23:26:55
【文件属性】:
文件名称:rogue:玩魔术的AI
文件大小:40KB
文件格式:ZIP
更新时间:2021-05-09 23:26:55
Go Rogue项目的目标是建立一个AI来玩比人类更好的Magic:The Gathering。 运行程序 如果您是开发人员,请将此$GOPATH到github.com/midrange/rogue目录中的$GOPATH中。 从rogue目录: go install ./... && play 您应该看到它打印出类似以下内容的内容: ~~~~~~ Welcome to Rogue ~~~~~~ 1) Human vs AI 2) AI vs AI Enter a number: 如果要进行开发,则还应该运行: go get golang.org/x/tools/cmd/stringer 更改任何枚举后,运行go generate ./... 笔记 最初是从Python开始的,但是为了提高速度而切换到Go: : 同时使其运行速度更快。
【文件预览】:
rogue-master
----.gitignore(2B)
----LICENSE(1KB)
----README.md(729B)
----game()
--------action.go(5KB)
--------type_string.go(440B)
--------game_test.go(19KB)
--------playerselector_string.go(469B)
--------player.go(32KB)
--------effect.go(2KB)
--------effecttype_string.go(649B)
--------condition.go(310B)
--------supertype_string.go(425B)
--------cardname_string.go(869B)
--------game.go(18KB)
--------card.go(16KB)
--------attack_bot.go(2KB)
--------cost.go(433B)
--------permanent.go(7KB)
--------subtype_string.go(460B)
--------actiontype_string.go(577B)
--------phase_string.go(450B)
--------stackobject.go(1015B)
--------mcst_bot.go(4KB)
--------deck.go(2KB)
--------selector.go(2KB)
--------strategy.go(2KB)
--------attackstatus_string.go(481B)
--------human.go(2KB)
----cmd()
--------play()

网友评论