I did my best to solve the task, but the code fails.
My code is located here:GitHub Repository
The sense of this task is that initially you have a sequence: [B1, B2, B3, B4, 0, W1, W2, W3] where B1, B2, B3, B4 - black balls on the board, 0 - gap on the boa...