This is the official repository for the CodeCraft Programming Game. If you want to know how to use CodeCraft, you should have a look at this tutorial.
CodeCraft uses sbt.
Most build tasks are straightforward.
sbt compile compiles the root project, sbt test runs all the tests, sbt publishLocal publishes the project to your local ivy repository.
To start a predefined game, run sbt 'project testai' run.
The project is split into several submodules, each of which resides in a separate folder:
Within most of the projects, there are three source directories (js, jvm and shared).
This is to allow for compilation to JavaScript using Scala.js.
The bulk of the code is inside the shared directories, with only some platform specific code residing in js and jvm.
You need to have the Scala plugin installed.
File → New → Project from Existing Sources.. → select root directory → Import project from external model → SBT → Next → keep default options unless you have a reason to change them → Finish
Tested on versions 15 and 2017.
I don't use Eclipse, but presumably this is relatively straightforward as well. If you figure it out, please make a pull request to update these instructions.
