/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package consolealiensgame;

/**
 *
 * @author guberti
 */
public class Martian extends Alien {
    int currentDir;
    
    public Martian() {
        currentDir = 1;
    }
    
    // Martians move left, right, left, right
    public MoveDir getMove(AlienAPI api) {
        currentDir *= -1;
        return new MoveDir(currentDir, 0);
    }

    @Override
    public int getFightPower(AlienAPI api) {
        // Martians should fight with half the maximum amount of fight they
        // could fight with
        return Math.min(api.energy(), api.tech()) / 2;
    }
}

@@ -745,10 +745,98 @@
 ;%0A    %7D%0A
+    %0A    public Action getAction(AlienAPI api) %7B%0A        return new Action(1, 0);%0A    %7D%0A
 %7D%0A

Add basic action code to Martian