@@ -0,0 +1,679 @@
+import java.util.*;%0A%0Aclass Player %7B%0A%0A    public static void main(String args%5B%5D) %7B%0A        Scanner in = new Scanner(System.in);%0A%0A        // game loop%0A        while (true) %7B%0A            String enemy1 = in.next(); // name of enemy 1%0A            int dist1 = in.nextInt(); // distance to enemy 1%0A            String enemy2 = in.next(); // name of enemy 2%0A            int dist2 = in.nextInt(); // distance to enemy 2%0A%0A            // Write an action using System.out.println()%0A%0A            // Enter the code here%0A%0A            if (dist1 %3C dist2) %7B%0A                System.out.println(enemy1);%0A            %7D else %7B%0A                System.out.println(enemy2);%0A            %7D%0A        %7D%0A    %7D%0A%7D

Add source code to Onboarding game