
Hello!
Last week, we completed an open beta test of the
Russian AI Cup Artificial Intelligence Programming
Championship . Participants will play the role of commander of a small detachment of fighters in a step-by-step tactical game - programming artificial intelligence and behavior strategies for a detachment of fighters in one of the programming languages: C ++, Java, C #, Python, or Pascal. The game itself this year we called CodeTroopers.
')
During the beta testing period, we checked the stability of the system, corrected errors that occurred, and filled the game with content — new maps on which the battles would take place.
November 11 at 00:00 the championship was released. The Sandbox opened - a testing ground for the troops, while the beta testing participants rating was zeroed.
Now everyone can begin to participate in the
championship and, while the Sandbox is open, debug, refine and evaluate the behavior of the artificial intelligence created by them in order to prepare their “squad” as much as possible.
The first round of fights will begin on November 23.
Both novice programmers and professionals are invited to participate in the competition. No special knowledge is required, basic programming skills are sufficient.
Come on
russianaicup.ru and register. To participate in the competition, one accepted package is enough, and you will immediately be included in the rating!
Demo visualization of the game can be viewed on our website. And below we want to give an example of the squad’s basic strategy in Java:
public final class MyStrategy implements Strategy { @Override public void move(Trooper self, World world, Game game, Move move) { if (self.getActionPoints() >= self.getShotCost()) { Trooper[] troopers = world.getTroopers(); for (int i = 0; i < troopers.length; ++i) { Trooper trooper = troopers[i]; boolean canShoot = world.isVisible(self.getShootingRange(), self.getX(), self.getY(), self.getStance(), trooper.getX(), trooper.getY(), trooper.getStance() ); if (canShoot && !trooper.isTeammate()) { move.setAction(ActionType.SHOOT); move.setX(trooper.getX()); move.setY(trooper.getY()); return; } } } } }
You can read more on the
site itself, here are useful links:
russianaicup.ru/p/about - about Russian AI Cup
russianaicup.ru/p/codeTroopers - o CodeTroopers
russianaicup.ru/p/quick - Quick Start
russianaicup.ru/p/rules - Full Rules
The Russian AI Cup is an initiative of the Mail.Ru Group within an IT-oriented competition. In this championship, participants compete in the ability to write artificial intelligence on the example of game strategies. The organizers are Mail.Ru Group and the National Research Saratov State University.
The best participants will receive nice prizes:

If you have questions, you can leave them in the comments to this publication, and we will try to answer them.