import
java.awt.*;
public
class DieG extends Die{
public void DrawDie(Graphics screen,
int x, int y) {
//
Draw a red die with black border
screen.setColor(Color.red);
screen.fillRoundRect(x, y, 100,
100, 20, 20);
screen.setColor(Color.black);
screen.drawRoundRect(x, y, 100,
100, 20, 20);
//
Draw white dots according to value
(see next 2 slides)
}
}