SHENZHEN I/O

SHENZHEN I/O

Not enough ratings
DANCE ROBOT DANCE
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
3.169 KB
30 Aug @ 1:52am
1 Change Note ( view )

Subscribe to download
DANCE ROBOT DANCE

Description
MAKE YOUR ROBOT DANCE!

*initial position* defines the initial coordinates of your robot. For example, when *initial position* = 35, your robot is initially located at (x = 3, y = 5).
*up*, *down*, *left* and *right* are movement commands that act on your robot.
*walls* specifies all of the blocked points. At most 8 walls.
At any time, your robot can only move within the area of (1, 1) ~ (8, 8) and cannot reach any blocked points.
Output your robot's *real-time position* in each time unit. In addition, activate the *blocked* signal if your robot is blocked.
*initial position* may never be blocked.

====================

My best score is 16 / 2015 / 32