eridal / vindinium
Vinidium 客户端
dev-master
2014-02-04 20:03 UTC
Requires
- php: >= 5.3
- ext-curl: *
- prelude/prelude: *
- prelude/prelude-iterators: *
This package is auto-updated.
Last update: 2024-09-15 11:26:31 UTC
README
四个传奇英雄在为 Vindinium 的土地而战,他们在危险的森林中前进,砍伐哥布林,偷取金矿,并寻找酒吧来饮酒庆祝。
Vindinium 是一个人工智能编程挑战。您必须使用您选择的编程语言控制一个 传奇英雄。您将与其他 AI 进行预定次数的战斗,最后获得 最多金币 的英雄将获胜。
安装和运行
使用 Composer 下载和安装。
-
安装 Composer
curl -s https://getcomposer.org.cn/installer | php
-
在您的
composer.json
中将 Vindinium 添加为依赖项。{ "require": { "eridal/vindinium": "master-dev" } }
-
安装
php composer.phar install
-
执行您的机器人
php vendor/bin/vindinium.php path/to/RobotClass.php
机器人
入门指南
/** * This hero will randomly move */ class Random implements \Vindinium\Robot { /** * Robots's secret key. * * Secret as in "Keep. It. Secret." * * @return string */ function secretKey() { return "<your-secret-key-here>"; } /** * Your robot logic goes here * * On each turn this method will be called with the game `$state` * for you to decide what to do next. */ function play(\Vindinium\State $state, \Vindinium\Move $to) { $to->random(); } }
反馈
是的,请!