https://github.com/ornicar/vindinium-starter-clojure
Clojure starter bot for Vindinium
https://github.com/ornicar/vindinium-starter-clojure
Last synced: 2 months ago
JSON representation
Clojure starter bot for Vindinium
- Host: GitHub
- URL: https://github.com/ornicar/vindinium-starter-clojure
- Owner: ornicar
- License: mit
- Created: 2014-01-26T17:59:48.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-02-21T00:52:24.000Z (over 9 years ago)
- Last Synced: 2025-03-19T02:11:28.529Z (3 months ago)
- Language: Clojure
- Homepage: http://vindinium.org
- Size: 17.6 KB
- Stars: 12
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Clojure starter pack for [vindinium](http://vindinium.org)
## Usage
```
$ lein repl
``````clojure
> ; (re)load the code
> (require 'vindinium.core :reload)> ; run a training game with 80 turns
> (vindinium.core/-main "training" secretkey 80)> ; run 50 arena games
> (vindinium.core/-main "arena" secretkey 50)
```## Implementation
You need to implement the `bot` function.
It takes an `input` argument - a map of data - print it to see what's inside.
It returns an move order - one of `north`, `south`, `east`, `west`, `stay`.