Class ScoreCanvas

Class ScoreCanvas

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----ScoreCanvas

class ScoreCanvas
extends Canvas
implements DecoderConstants
The canvas to show the score for each of the player's guesses. It also shows victory/defeat messages.

Method Index

 o paint(Graphics)
Show the score.

Methods

 o paint
  public void paint(Graphics g)
Show the score. For each column, the top number represents the number of marbles that are of the right color and in the right place; the bottom number represents marbles that are the right color, but in the wrong place. There is no double counting; a marble will be counted as one of these at most.
Overrides:
paint in class Canvas