mcrumm/vindinium-hacklang

Vindinium in (mostly) hack-strict

v0.3.3 2015-05-06 17:46 UTC

README

Vindinium starter in (mostly) hack-strict, based on the Scala version by @ornicar.

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

Play

The game script is located at bin/hackdinium, or vendor/bin/hackdinium if installed via composer.

$ hackdinium

SUMMARY
    hackdinium -- Vindinium is an Artificial Intelligence programming challenge.

USAGE
    hackdinium <key> <[training|arena]> [-t,--turns=300] [-h,--host="http://vindinium.org/"]

DESCRIPTION
    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.

For more information, visit http://vindinium.org/

OPTIONS
    -t [<value>]
    --turns[=<value>]
        Number of Turns / Number of Arena Games
    -m [<value>]
    --map[=<value>]
        Training mode map [m1..m6]
    -h [<value>]
    --host[=<value>]
        The host URL

Extend

Install

Hackdinium is available via composer.

{
    "require": {
        "mcrumm/vindinium-hacklang": "~0.3"
    }
}

Virtual Environment

Check out the vagrant-hackdinium repo for a fully-functional virtual environment for Hackdinium.

Why "mostly" hack-strict?

First off, the top-level namespace, as well as the Bot and Game namespaces are entirely //strict. Any companion code you write can likely be the same.

However, there are a few partial objects/namespaces, as well:

If I had my way, I'd never work... I'd paint, and read, and play violin. I'd climb the mountains, and sing the songs that I like to sing. But I don't got that kinda time. --P. Diddy