Goal
In this game, you control a paddle, catch the falling green polygon, but avoid the falling red diamond. The paddle must go LEFT, RIGHT or stay STILL. Each turn, the item falls from one cell to the bottom. To succeed your mission, you must catch all the green items, and avoid all red items.
Input for a game round
2 lines:
- 2 integers myX and myY representing the position of the paddle.
- 3 integers itemX and itemY and isRed representing the item position, and if it is green (0) or red (1)
Output
One action among these:
- LEFT: Makes the paddle go X - 1
- RIGHT: Makes the paddle go X + 1.
- STILL: Does not change the paddle's position.