Open AI Championship

Russian AI Cup — artificial intelligence programming contest

Finals: before start



Round 1

Round 2


Recent comments

11 december 01:01: newpuk wrote comment on post Round 2
11 december 00:13: malinovsky239 wrote comment on post Round 2
10 december 23:38: kuzmalex wrote comment on post Round 2
10 december 23:25: malinovsky239 wrote comment on post Round 2
10 december 22:56: MikeWazowski wrote comment on post Round 2
10 december 19:13: Jeners wrote comment on post Some more good news ;)
10 december 19:05: mixei4 wrote comment on post Some more good news ;)
10 december 12:47: Jeners wrote comment on post Round 2
10 december 12:45: Dimon777 wrote comment on post Round 2
10 december 12:38: Dimon777 wrote comment on post Round 2

VK Group

Telegram chat

This year task — CodeWars

Write an artificial intelligence to control a large amount of vehicles, compete with other participants in the championship!

Detailed description of the task can be found in “CodeWars” championship and Rules sections.

Let's register! Quick start

Russian AI Cup — open artificial intelligence programming contest. Test yourself writing a game strategy! It’s simple, clear and fun!

The sixth Russian AI Cup championship is named CodeWars. You are to program an artificial intelligence to control a large amount of vehicles. Your strategies will compete with each other in the Sandbox and the championship. You can use any of programming languages: C++, Java, C#, Python, Pascal or Ruby. The Sandbox is already open. Good luck!

We welcome both novice programmers — students and pupils, as well as professionals. Writing your own strategy is very simple: basic programming skills are enough.

Championship schedule

  • Sandbox: open for everyone from November 6, 21:00 UTC till December 24, 21:00 UTC; first and fourth weeks will be beta-testing, system instability and significant changes in the rules are possible during these periods.
  • Round 1: November 24, 21:00 UTC – November 26, 21:00 UTC.
  • Round 2: December 8, 21:00 UTC – December 10, 21:00 UTC.
  • Finals: December 15, 21:00 UTC – December 17, 21:00 UTC.

Begin from the Quick start quide. Writing a simple strategy is not hard at all!


Prizes aren't available

Championship News


Some more good news ;)

In the first half of Round 2, approximately the same number of waves were tested as in each half of the previous tournament stage. Of course, you expected more, so as we.

At the beginning of Round 2, there were some failures in the testing system. We quickly fixed them, but the process did not accelerate much. The main reasons for this are:

  1. Complicating the rules of the game, compared to Round 1, and in particular adding facilities and the ability to produce new units.
  2. Selection of strategies. Top strategies, of course, produce much more calculations and more efficiently utilize the CPU resources provided to them. Round 2 involves a significant number of strategies that operate at the time limit, and sometimes exceed it.
  3. Small number of games per single wave.

The last two reasons reinforce each other. It often turns out that games with long-running strategies remain at the end of the wave. The most participants have to wait until one or two games are tested.

We are working on solving the problem in two directions at once. First, the number of testing machines will be further increased (compared to the beginning of Round 2). Secondly, we will immediately create several waves of games. This will greatly reduce the amount of resources wasted. This solution has a disadvantage: during the testing of these batch waves the standings table can be not relevant. However, we consider this a lesser evil than a small number of games.


Some good news

Some good news for the last week.

The performance of Ruby and Python 2 and 3 clients was improved. While Ruby and Python 2 received a very small speed increase, the boost of Python 3 is more significant. In turn, fans of Python 2 had the opportunity to run their strategies in an alternate way, namely PyPy 2 5.8.0+. This can improve the execution speed of some strategies. However the NumPy and SciPy library are not available. Choose wisely. Unfortunately, PyPy 3 does not have official support in Windows, except for the old slow version.

We noticed that after achieving significant advantage in score points, many strategies try not to force events and simply wait for the end of game time. In this regard, the rules were updated. Now, since the middle of the game, a strategy with fewer units regularly gains a small amount of score points. So to say, the bonus for survival. We hope that now the games will become more dynamic and interesting.


  • replaced weak strategy award with vehicle maintenance payment.
  • December 3: reduced slightly vehicle maintenance cost, also fixed bug with vehicle production.


Today was released a series of small updates to the game simulator and the rules, namely:

  • the facility capture speed is halved;
  • the production time of aerial vehicles was increased;
  • fixed a bug with numerous score points on capturing the facility, now points are awarded only when the owner changes;
  • slightly improved technical renderer;
  • various minor improvements.

Round 1 is over

Round 1 is over. In total for 2 parts each strategy has played 42 times. Among all participants there were 3 that won in all their duels. The strategies of kislas, blashyrkh888 and mixei4 divided the first three places, differing only by the time of sending the latest strategy version. We hope that after such a success they will not relax and will continue to improve their strategies ;)

We remind you that the best 300 participants are already in Round 2. If you do not get into their number, do not get upset. You still have a chance to get the T-shirt. For this, at the beginning of Round 2, you need to be in the top 60 Sandbox participants except for the mentioned 300 people. Within a few days we will add a special table, where everyone can track their progress.

And now begins the second week of beta test and also begins the hot time for adapting your strategies to the changed rules. Facilities are now available in the Sandbox games.


Winter Round 1 is coming

Comrades! Round 1 has almost begun!

It so happened that we could not get the planned 1080 participants. Obviously, the main reason for this was the complexity of the task and therefore the high entry threshold. We understand you perfectly, because the organizers also had to make considerable efforts to optimize the testing system and the game renderer. But everything has its pluses. This year, for the first time in Round 1, all or almost all of the strategies will take part. (The system is arranged in such a way that the number of participants in the tournament stage must be a multiple of the number of participants in one game.)

We remind you that the games of the stage will be played by waves. Each strategy plays exactly once for the wave. For the victory in the game, two points are given, for the defeat is zero, in case of a tie, both strategies will receive one point each.

We wish everyone good luck. But if you still did not manage to get into the treasured top 300, you can always go to Round 2 and even Finals from the Sandbox.


Black friday

Attention attention! Only today, only now … 20 seconds at a price of 10 … ah, huh …

Due to the slow warmup of strategies on some programming languages, we decided to increase the time limit for the execution of the strategy’s process. The problem was especially relevant in short verification games. Therefore, the time limit was increased by 10 seconds — a constant that does not depend on the duration of the game. The time limit for one tick remains unchanged.


News of the week

The next week of AI Cup has passed, and we are ready to report on the work done. And it was done a lot.

We have made significant efforts to improve the system’s performance and stability. This may not be directly visible to the participants, but this is always the case: failures in work create discontent, and normal functioning is taken for granted.

Obviously, the amount of data in this year’s task has challenged not only the testing system, but also the strategies of the participants, an integral part of which is a special client interacting with the game simulator. These clients were written in ancient times, in the age of the legendary first tanks. For a long time their work completely satisfied us and participants. But this year they began to malfunction. Weak links in the chain were the clients on Python 2, Python 3, Ruby, and… of course, C++. Not without the help of the community, these clients carried out extensive work. Their performance has increased noticeably, leaving more time for the work of the main logic of the strategy. A number of minor improvements to user packages in other languages have also been made.

The set of available languages over the past week has been significantly expanded. Now, in addition to the standard set, you can develop your strategy on Scala, Kotlin, Go, Swift and Rust. Many thanks to all the participants who contributed to the development and support of these packages.

The rules of the game since the end of the beta test have not fundamentally changed, but a number of typos have been fixed, some controversial points have been described in more detail. If you still have some incomprehensible moments, download the latest version and go write the code! There are only 4 days left until Round 1.


  • added Nim devkit.

The end of the beta test

The first week of the beta test came to an end. Together we did a great job to improve the game, fixed many existing bugs and balanced the rules of the game.

Among the other, we added two new actions to the game:

  • SCALE to change size of units’ formation;
  • TACTICAL_NUCLEAR_STRIKE to request a local nuclear strike.

Please re-download the latest version of language packs and various utilities. Please note that the complete rules of the game, language packs and the Local runner utility are also published on Github. There you will be able to track the changes and also to see a changelog.

We won’t make changes that could affect the behavior of the strategy in the game till the end of Round 1 and the beginning of the second beta week. However, we will continue to fix known bugs, and we reserve the right to change the mechanics of the game beyond the rules if we deem these changes necessary.

The rating of all participants in the Sandbox has been reset.

Due to the large volume of work we almost don’t have time to support custom packages. We will try to fix this omission in the next week.

However, you already can develop and submit your AI using wonderful D language. Thanks Gassa for it. The devkit is available on Github.


Open beta

We are pleased to welcome all the participants of the Russian AI Cup: CodeWars 2017 open beta!

The beta test will run until 21:00 UTC on 12 November. Please note that at this time we can make a significant changes in the rules, scoring system and any other aspects of the championship. This week we will try to fix possible mistakes, optimize performance and make any other necessary improvements. The ratings will be reset after this week of beta.

Some links on the website are not working, including links to Github. We will fix it within a few days.

Good luck and have fun!

Latest games of leaders
Round 2
# Name Rating
1 ud1 ud1 118
2 Adler Adler 118
3 GreenTea GreenTea 118
4 oreshnik oreshnik 118
5 mixei4 mixei4 118
6 spacistor spacistor 118
7 stem stem 116
8 tyamgin tyamgin 116
9 moonlight moonlight 114
10 lama lama 114
# Name Rating
1 GreenTea GreenTea 3863
2 mixei4 mixei4 3721
3 tyamgin tyamgin 3700
4 ud1 ud1 3659
5 morozec morozec 3644
6 MucmuK MucmuK 3620
7 oreshnik oreshnik 3585
8 Adler Adler 3561
9 Leos Leos 3531
10 spacistor spacistor 3523