Open AI Championship

Repeater utility

Round 2: before start

Project

Sandbox

Round 1

Round 2

Finals

Recent comments

15 january 14:13: karloid wrote comment on post Round 1 is over
15 january 14:11: karloid wrote comment on post Round 1 is over
15 january 09:00: chel wrote comment on post Round 1 is over
14 january 19:40: fotol wrote comment on post Round 1 is over
14 january 17:03: tyamgin wrote comment on post Round 1 is over
14 january 16:23: mrKIP wrote comment on post Round 1 is over
14 january 14:56: amurushkin wrote comment on post Finals
14 january 14:47: Adhami wrote comment on post Finals
14 january 07:38: amurushkin wrote comment on post Round 1 is over
14 january 04:48: TongoHiti wrote comment on post Round 1 is over

VK Group

Telegram chat

 

For easier strategy development process you have an option to run local replays. You can locally replay a game that has been tested on the server. To do so, first download the Repeater and extract it. You will need an installation of Java 8+ Runtime Environment (you can find JRE in the corresponding section on the Oracle site) to run the Repeater.

Local replay is an option to run your strategy on your computer in a such a way, that it will see the world around it the same as it was while testing on the server. This will help you to debug, add logging and watch the reaction of your strategy during the game.

Please notice, that any interaction of your strategy with the game world during local replay is completely ignored. That means, that every moment the environment of the strategy is exactly the same as it was, and does not change, no matter what your strategy writes to the action object. The utility does not have full data of the game (only a part that was sent to your strategy), thus can not visualize the game. If your strategy does not have any breakpoints and/or some logging, it will «silently» do its job and terminate.

How to use the utility:

  1. authorize on the site, download an archive and extract it to a convenient place;

  2. choose a game with your strategy, and go to its page by following the link in the column “#”;

  3. if the game is tested, you will see a button “Local replay” on the right;

  4. after clicking on it a window will appear with a list of all your strategies that participated in the game, and their corresponding tokens;

  5. run the Repeater, passing the token as a command line parameter, or just enter it to the appeared terminal, after which the Repeater will download all necessary data and will start waiting for your strategy to connect;

  6. compile your strategy. Note that the entry point is located in Runner.{ext} file, and this file is the one to run;

  7. after starting your strategy will connect to the Repeater, that will emulate the behavior of the game world as it was tested on the server.

Attention! Local replay is only available within 2-3 days from the moment of creation of the game!



Adhami

Adhami

Amman

When I run the repeater.sh I get: repeater.sh: 1: repeater.sh: pushd: not found repeater.sh: 3: repeater.sh: popd: not found Repeater Tool for Russian AI Cup By Russian AI Cup Team

[Mon Dec 24 22:30:33 EET 2018]: Repeater has been started [token=40a21ff5027ae626346281de01a210a4809ba118_0] [Mon Dec 24 22:30:33 EET 2018]: Got dump from cache [bytes=28202949] [Mon Dec 24 22:30:44 EET 2018]: Connection from ’/127.0.0.1:58594]

and it is stuck there

Dec 24, 2018 11:30:51 PM
mixei4

mixei4

КГУ

Adhami

Adhami

Amman

When I run the repeater.sh I get: repeater.sh: 1: repeater.sh: pushd: not found repeater.sh: 3: repeater.sh: popd: not found Repeater Tool for Russian AI Cup By Russian AI Cup Team [Mon Dec 24 22:30:33 EET 2018]: Repeater has been started [token=40a21ff5027ae626346281de01a210a4809ba118_0] [Mon Dec 24 22:30:33 EET 2018]: Got dump from cache [bytes=28202949] [Mon Dec 24 22:30:44 EET 2018]: Connection from ’/127.0.0.1:58594] …

After starting Repeater you should start your strategy as usual (Repeater replaces Local Runner).

Dec 24, 2018 11:43:10 PM
Adhami

Adhami

Amman

I already did that

Dec 25, 2018 11:14:25 AM
614

614

Why repeater can swear, “Error: Could not find or load main class repeater.jar”

jre1.8.0_191

Dec 30, 2018 11:09:58 PM
614

614

In now Error occurred during initialization of VM Could not reserve enough space for 2097152KB object heap

Dec 30, 2018 11:19:35 PM
614

614

Okay, changed to 1 GB. Start. Well, I still don’t understand why it’s wrong. memory free 8GB.

Dec 30, 2018 11:21:58 PM
leloy

leloy

Organization::Ateneo de Manila

mixei4

mixei4

КГУ

After starting Repeater you should start your strategy as usual (Repeater replaces Local Runner).

It still isn’t working

Dec 31, 2018 7:04:11 AM
mixei4

mixei4

КГУ

leloy

leloy

Organization::Ateneo de Manila

It still isn’t working

I think you can try creating an issue at github

https://github.com/MailRuChamps/raic

Dec 31, 2018 7:44:37 AM
614

614

It would be quite cool if the repeater could still be your custom rendering to watch….

Jan 5, 2019 11:59:27 AM