Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. class Player {
  2.  
  3. public static void main(String args[]) {
  4. Scanner in = new Scanner(System.in);
  5. int lightX = in.nextInt(); // the X position of the light of power
  6. int lightY = in.nextInt(); // the Y position of the light of power
  7. int initialTX = in.nextInt(); // Thor's starting X position
  8. int initialTY = in.nextInt(); // Thor's starting Y position
  9.  
  10. // game loop
  11. while (true) {
  12. int remainingTurns = in.nextInt(); // The remaining amount of turns Thor can move. Do not remove this line.
  13.  
  14. // Write an action using System.out.println()
  15. // To debug: System.err.println("Debug messages...");
  16.  
  17.  
  18.  
  19. if(lightX>initialTX){
  20. initialTX+=1;
  21. initialTY+=1;
  22. System.out.println("SE");
  23.  
  24. }else{
  25. System.out.println("");
  26. }
  27.  
  28.  
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement