mirror of
https://github.com/gwenhael-le-moine/c-urs_-toil-s.git
synced 2024-12-27 09:58:44 +01:00
35 lines
1.3 KiB
Java
35 lines
1.3 KiB
Java
import com.cycojesus.Star;
|
|
|
|
public class StarTest {
|
|
public static void main( String[] args ) {
|
|
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( );
|
|
}
|
|
}
|