Not a gem! A sandbox where to develop bots for codingame in TDD manner, in separate, testable files.
- Place files in
lib/
, and require them inlib/codinbot.rb
like you normally would. - Write specs in
spec/
- Configure
build_order.txt
contents. - When you're ready to sync to codingame, run
$ ruby codingame_concatenator.rb
which will updatecondingame.rb
file with the conecatenaton results.
- Probably a good idea to prevent heroes from going too close to the edge of the arena. 566 is the maximum, 100-200 probably effective and safe.
- When attacking the closest threat, it's probably a good idea to trail it a bit (again, 566 units is max), to reduce the time necessary to reach the next target.
- The long diagonal is 19,794 units long and cuts the 90° corner into 63° and 27° pair.
- Wind pushes units within 1280 units of caster 2200 units in the direction from the spellcaster to x,y.
- Shield can be cast up to a range of 2200 and lasts for 12 moves, that's a distance of 4800, so only offensive shielding inside opponent's lawn can produce a surefire hit.
The code is available as open source under the terms of the MIT License.