public class FinalDot { private static final int MAX_STEP = 5; private static Die die = new Die(FinalDot.MAX_STEP); private String dotColor; private int dotPosition; public FinalDot(String color) { this.dotColor = color; this.dotPosition= 0; } public String getColor() { return this.dotColor; } public int getPosition() { return this.dotPosition; } public void step() { this.dotPosition += FinalDot.die.roll(); } public void reset() { this.dotPosition = 0; } public void showPosition() { System.out.println(this.getColor() + ": " + this.getPosition()); } }