Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Player {
- public static void main(String args[]) {
- Scanner in = new Scanner(System.in);
- int lightX = in.nextInt(); // the X position of the light of power
- int lightY = in.nextInt(); // the Y position of the light of power
- int initialTX = in.nextInt(); // Thor's starting X position
- int initialTY = in.nextInt(); // Thor's starting Y position
- // game loop
- while (true) {
- int remainingTurns = in.nextInt(); // The remaining amount of turns Thor can move. Do not remove this line.
- // Write an action using System.out.println()
- // To debug: System.err.println("Debug messages...");
- if(lightX>initialTX){
- initialTX+=1;
- initialTY+=1;
- System.out.println("SE");
- }else{
- System.out.println("");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement