Setup for development
- Install leiningen
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Make changes
- Run tests (
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request
- Check if Request passed Travis-Ci
How to add a new problem
You have to write the description of the problem and the correct implementation. See examples in
src/battle_asserts/issues. Corresponding tests are in
A problem file includes:
level— difficulty of the problem; possible values are
description— detailed description of the problem.
test-data— data in a specified format which will be used to test solutions. The first element in this list will be displayed as an example to players, so it should clarify and illustrate the problem as much as possible. Do not choose a trivial case for this example.
arguments-generator— arguments generator for the
solutionfunction; generated arguments will be used to test players' solutions.
solution— implemented correct solution.
Test file includes a call to a test generator (the same for all tests).