eridal / vindinium
Vinidium Client
Requires
- php: >= 5.3
- ext-curl: *
- prelude/prelude: *
- prelude/prelude-iterators: *
This package is auto-updated.
Last update: 2024-11-15 11:50:29 UTC
README
Four legendary heroes were fighting for the land of Vindinium Making their way in the dangerous woods Slashing goblins and stealing gold mines And looking for a tavern where to drink their gold
Vindinium is an Artificial Intelligence programming challenge. You have to take the control of a legendary hero using the programming language of your choice. You will fight with other AI for a predetermined number of turns and the hero with the greatest amount of gold will win.
Install and Run
Download and install using Composer
-
Install Composer:
curl -s https://getcomposer.org/installer | php
-
Add Vindinium as a dependency to your
composer.json
{ "require": { "eridal/vindinium": "master-dev" } }
-
Install
php composer.phar install
-
Execute your Robot
php vendor/bin/vindinium.php path/to/RobotClass.php
Robots
-
Register your robot at vindinium.
Tip: Use one key per robot, or stats will be shared.
-
Create a class, and implement the Robot interface
Getting Started
/** * 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(); } }
Feedback
Yes, please!