2011-08-17 15:02:09 +02:00
|
|
|
import com.cycojesus.Star;
|
|
|
|
|
|
|
|
public class StarTest {
|
|
|
|
public static void main( String[] args ) {
|
2011-08-17 15:49:00 +02:00
|
|
|
Star star = new Star( );
|
|
|
|
star.debugDisplay( );
|
|
|
|
star.move( Star.direction.DOWN );
|
|
|
|
star.move( Star.direction.RIGHT );
|
|
|
|
star.move( Star.direction.DOWN );
|
|
|
|
star.move( Star.direction.LEFT );
|
|
|
|
star.move( Star.direction.UP );
|
|
|
|
star.move( Star.direction.RIGHT );
|
|
|
|
star.move( Star.direction.UP );
|
|
|
|
star.move( Star.direction.LEFT );
|
|
|
|
star.move( Star.direction.DOWN );
|
|
|
|
star.move( Star.direction.RIGHT );
|
|
|
|
star.move( Star.direction.DOWN );
|
|
|
|
star.move( Star.direction.LEFT );
|
|
|
|
star.move( Star.direction.RIGHT );
|
|
|
|
star.move( Star.direction.UP );
|
|
|
|
star.move( Star.direction.LEFT );
|
|
|
|
star.move( Star.direction.UP );
|
|
|
|
star.move( Star.direction.RIGHT );
|
|
|
|
star.move( Star.direction.UP );
|
|
|
|
star.move( Star.direction.DOWN );
|
|
|
|
star.move( Star.direction.LEFT );
|
|
|
|
star.move( Star.direction.UP );
|
|
|
|
star.move( Star.direction.RIGHT );
|
|
|
|
star.move( Star.direction.DOWN );
|
|
|
|
star.move( Star.direction.UP );
|
|
|
|
star.move( Star.direction.LEFT );
|
|
|
|
star.switchActor( );
|
|
|
|
star.debugDisplay( );
|
2011-08-17 15:02:09 +02:00
|
|
|
}
|
|
|
|
}
|