• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

jaspervdj/planet-wars-haskell: Unofficial Haskell starter package for the Planet ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

jaspervdj/planet-wars-haskell

开源软件地址(OpenSource Url):

https://github.com/jaspervdj/planet-wars-haskell

开源编程语言(OpenSource Language):

Haskell 65.5%

开源软件介绍(OpenSource Introduction):

planet-wars-haskell

Unofficial Haskell starter package for the google ai contest.

What

The PlanetWars module contains a small library to build your bot on. The MyBot module contains a simple example bot, based on the example in the C++ starter package.

You should change the MyBot module to your liking. If you make any improvements to the PlanetWars module, I would appreciate if you have me pull your changes, so everyone can benefit from your improvements -- after all, we're trying to get the Haskell bots as high as possible in the ranking, right?

Building

You should be able to build your bot using:

ghc --make -O2 MyBot.hs

The server uses the -O2 flag as well. Now, you should have an executable called MyBot.

Running

Let's watch it fight against one of the java bots.

java -jar tools/PlayGame.jar maps/map7.txt 1000 1000 log.txt \
    "./MyBot" "java -jar example_bots/RandomBot.jar" | \
    java -jar tools/ShowGame.jar

More information can be found here.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap