Skip to content

Instantly share code, notes, and snippets.

@truell20
truell20 / RandomBot.py
Created December 12, 2016 00:28 — forked from erdman/RandomBot.py
Improving the Halite RandomBot (Python3)
import hlt
from hlt import NORTH, EAST, SOUTH, WEST, STILL, Move, Square
import random
myID, game_map = hlt.get_init()
hlt.send_init("RandomPythonBot")
while True:
game_map.get_frame()
@truell20
truell20 / install.sh
Created November 25, 2016 06:00
Example install.sh for npm. Just what you would expect :).
npm install
@truell20
truell20 / install.sh
Last active November 25, 2016 06:16
Installs keras using virtualenv. Example for the halite competition.
#!/bin/bash
virtualenv ./
source bin/activate
pip install numpy scipy scikit-learn pillow h5py
pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git
pip install keras
deactivate
@truell20
truell20 / install.sh
Created November 2, 2016 23:18
Halite install.sh file for python3 bot using numpy
pip3 install numpy -t ./
@truell20
truell20 / error.log
Last active November 6, 2016 23:31
Example error log for the Halite competition
--- Init ---
PythonBot
--- Bot used 40 milliseconds ---
-----------------------------------------------------------------------------
--- Frame #1 ---
Traceback (most recent call last):
--- Bot used 0 milliseconds ---
ERRORED!
Response received (if any):
Traceback (most recent call last):