public static void DoTurn(PlanetWars pw) {

                // (0) Create a random number generator
                Random random = new Random();

                // (1) Pick one of my planets at random.
                Planet source = null;

                // (1a) Take the list of my planets
                List<Planet> myPlanets = pw.MyPlanets();

                //An example debug statement. These statements are useful when you don't understand the behaviour of your bot.
                pw.log("I have", myPlanets.size(), "planets. (example debug statement, you can remove or change me!)");

                // (1b) If the list is not empty:
                if (myPlanets.size() > 0) {
                        // (1c) Pick a random integer in [0, number_of_my_planets]
                        Integer randomSource = random.nextInt(myPlanets.size());

                        // (1d) Pick a random planet as source
                        source = myPlanets.get(randomSource);
                }

                // (2) Pick a target planet at random
                Planet dest = null;

                // (2a) Take the list of not my planets
                List<Planet> allPlanets = pw.NotMyPlanets();

                if (allPlanets.size() > 0) {

                        // (2b) Pick a random integer in [0, number_of_all_planets]
                        Integer randomTarget = random.nextInt(allPlanets.size());

                        // (2c) Pick a random planet as target
                        dest = allPlanets.get(randomTarget);
                }

                // (3) Send half the ships from source to destination
                if (source != null && dest != null) {
                        pw.IssueOrder(source, dest);
                }
        }