Spring Challenge 2023: Action format

The game information mentions that in each turn, players can do any number of valid actions.

I would like to confirm that the valid format when it is required to do multiple actions is to use the semicolon character as a separator between consecutive actions.

Thanks in advance for confirming this guess or correcting it if the actual valid format for multiple actions per turn.

Hello,
yes, one example could be:

BEACON 31 1;BEACON 23 1;BEACON 15 1;BEACON 17 1;

Which would create Beacons on 31, 23, 15, 17 with strength 1 each.

1 Like

Thanks for the reply and the example. If the semicolon after the last action is not optional, then the semicolon is actually used as a terminator, not as a separator!

semi columns works for me

1 Like

The terminator is actually the newline character β€˜\n’, you don’t need the β€˜;’ separator at the end.

1 Like

If anyone keeps getting "Warning: your code did not read all available input before printing an instruction, your outputs will not be synchronized with the game's turns and unexpected behaviour may occur." only after adding an action and after checking that all input really is used, it may be because of not chaining the actions in one command as presented above, but rather having multiple commands for multiple actions.

1 Like