CodinGame: challenge yourself in programming AIs —04 May 2014
CodinGame (codingame.com) is a website with monthly programming contests. It’s similar to Codility (codility.com), but more playful: many of the challenges are defined in the context of some game, and beautifully done.
Here’s for example the first level in Ragnarök - Power of Thor:
You have to program the AI to navigate Thor to the lightning, which can be at any random location in the playing field. The program receives initialization data from stdin, followed by additional data in every round.
The game works with an infinite loop: you receive some data from stdin about the current round, and you have to print your move to stdout. There is a fantastic code editor next to the game field:
Here’s another screenshot from the Thor series, Ragnarök - Thor vs Giants:
This one is a level 3 problem. You have to kill the giants by striking your hammer. It has a blast radius of 9 meters, but you only get limited shots. Good luck with that, it’s pretty damn hard!
All in all, it’s a fun way to test your programming skills. You can participate in the monthly contests, or just practice with the growing collection of training exercises.