import java.awt.*; import java.util.*; // Knights move in an L-shaped pattern, // repeatedly going one space to the east // and then two spaces north public class Knight extends Critter { private int moves; public Attack fight(char opponent) { return Attack.SCRATCH; } public Color getColor() { return Color.BLACK; } public Direction getMove() { moves++; if (moves % 3 == 1) { return Direction.EAST; } else { return Direction.NORTH; } } public char getChar() { return 'K'; } }