Giter Site home page Giter Site logo

halite-2-clj-collab's Introduction

Halite 2 Clojure bot

From the Halite site:

Halite is an open source artificial intelligence programming challenge, created by Two Sigma, where players build bots using the coding language of their choice to battle on a two-dimensional virtual board.

Use this project to create a Halite bot written in Clojure.

Getting started

Get an account

To submit your bots, you need a Halite account. If you don't already have one, create one.

Install your API key

The hlt client allows you to use an API key to submit your bot from the command line. Create an API key via your profile settings.

Install the API key for your project. First, set the appropriate environment variables.

> source config.env

Then, install the API key using the hlt client tool. If you did not source the config.env file, your API key will be placed in the user-root rather than your collab group directory. So go do that if you haven't already You'll be prompted to enter the API key you generated:

> hlt auth
Please go to http://halite.io/user/settings to obtain an api_key, and paste here:

Confirm everything works

You should now be able to build and upload your bot. Smoke test it to confirm everything is working as expected.

# build and run (battling two instances of your bot against each other)
> script/run_game.sh

# package and upload
> script/package && script/upload

You can safely ignore warnings regarding missing hlt/ library folders. You should see Successfully uploaded bot with version 1 once the upload is complete.

Hack, hack, hack away!

You can find the source files in the src/ directory. When you're ready to submit a new version, package and upload.

Notes

This project is based on the Halite 2 Clojure starter kit.

The helper scripts use a modified version of the hlt_client Python library which allows the Halite API authorization key to be stored in an arbitrary directory via the HALITE_CONFIG_DIR environment variable. The script in script/init downloads and installs this modified hlt_client and the halite environment binary suitable for 64-bit Linux machines.

halite-2-clj-collab's People

Contributors

grzm avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.