Skip to content

cch1/battlebots

 
 

Repository files navigation

WillowTree Battlebots

Battlebots is multiplayer game inspired by scalatron written in clojure.

How it works

Each player writes their own bot in clojure (other language support may become available in the future). Players then register it in an upcoming game and battle against other bots.

Setting up your development environment

Requirements

  1. leiningen
  2. mongodb

Getting Started (Development)

  1. For development, Register a new GitHub OAuth Application NOTE: This step will be removed when we get a WillowTree GitHub App.
  2. (REQUIRED) Add the following environment variables.
    • BATTLEBOTS_GITHUB_CLIENT_ID (GitHub Client ID)
    • BATTLEBOTS_GITHUB_CLIENT_SECRET (GitHub Client Secret)
    • BATTLEBOTS_OAUTH_SIGNING_SECRET (Random secret string)
  3. (OPTIONAL) If running a remote database, add the following environment variables. (This is required if running in production.
    • BATTLEBOTS_MONGOD_USER_NAME
    • BATTLEBOTS_MONGOD_USER_PW
    • BATTLEBOTS_MONGOD_HOST_LIST
  4. (REQUIRED) Run lein run in root directory (builds project and runs server)
  5. (REQUIRED - CLIENT DEV ONLY) Run lein figwheel in root directory (compiles clojurescript and watches)
  6. (REQUIRED - CLIENT DEV ONLY) Run lein less auto in root directory (watches styles)
  7. (REQUIRED - Unless using remote DB) If running DB locally, Run mongod to start MongoDB

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 94.5%
  • CSS 5.5%