/2015-SpaceInvaders-Bot-NodeJS

An example Node.js bot for the 2015 R100K challenge.

Primary LanguageJavaScriptGNU General Public License v2.0GPL-2.0

Node.js

If you plan to develop your entry in JavaScript you need to download and install Node.js v0.12.x.

Get The Code

Download the zip file from Github or use Git to clone the repository:

  • Start Git Bash
  • Change to the directory where you want to checkout the sample bot
  • Run: git clone https://github.com/EntelectChallenge/2015-SpaceInvaders-Bot-NodeJS.git

Compile

The easiest way to compile is to open a Command Prompt, change to your bot folder and run compile.bat. This will use NPM to fetch your dependencies and build your bot.

Run

Once you have compiled you can do a basic test of the bot by simply launching a Command Prompt, changing to the bot directory and running run.bat output. This will use the example state and map files in the output folder.