getMove() Function

What should the Autoplayer give back, if it is waiting till the current piece will land and the next will appear? If it gives NULL then the game is over, if - MoveDown, then it is not enough time to compute.

1 Like

The autoplayer never “waits”. It can always moves the current piece. When the piece it at its final position, the autoplayer should return DOWN so that step() is called again and a new piece is selected.

If you get a timeout, then this is because you take too long computing your moves.

1 Like