dev-master
9999999-dev http://vindinium.org/Vinidium Client
MIT
The Requires
- php >= 5.3
- ext-curl *
- prelude/prelude *
- prelude/prelude-iterators *
vinidium
Wallogit.com
2017 © Pedro Peláez
Vinidium Client
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, (*1)
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., (*2)
Download and install using Composer, (*3)
Install Composer:, (*4)
curl -s https://getcomposer.org/installer | php
Add Vindinium as a dependency to your composer.json, (*5)
{
"require": {
"eridal/vindinium": "master-dev"
}
}
Install, (*6)
php composer.phar install
Execute your Robot, (*7)
php vendor/bin/vindinium.php path/to/RobotClass.php
Register your robot at vindinium., (*8)
Tip: Use one key per robot, or stats will be shared., (*9)
Create a class, and implement the Robot interface, (*10)
/**
* 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();
}
}
Yes, please!, (*11)
Vinidium Client
MIT
vinidium