2017 © Pedro Peláez
 

library vindinium

Vinidium Client

image

eridal/vindinium

Vinidium Client

  • Tuesday, February 4, 2014
  • by eridal
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Vindinium

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)

Install and Run

Download and install using Composer, (*3)

  1. Install Composer:, (*4)

    curl -s https://getcomposer.org/installer | php
    
  2. Add Vindinium as a dependency to your composer.json, (*5)

    {
        "require": {
            "eridal/vindinium": "master-dev"
        }
    }
    
  3. Install, (*6)

    php composer.phar install
    
  4. Execute your Robot, (*7)

    php vendor/bin/vindinium.php path/to/RobotClass.php
    

Robots

  1. Register your robot at vindinium., (*8)

    Tip: Use one key per robot, or stats will be shared., (*9)

  2. Create a class, and implement the Robot interface, (*10)

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!, (*11)

The Versions

04/02 2014

dev-master

9999999-dev http://vindinium.org/

Vinidium Client

  Sources   Download

MIT

The Requires

 

vinidium