Hi,
I'm modeling a chess game on Java, and I'm having some problem. Here's what the code looks like (the relevant parts):
Enum class Couleur.java:
public enum Couleur {BLANC, NOIR}
Piece.java:
public abstract class Piece { (...) public Piece(Couleur couleurParam){ this.couleurPiece = couleurParam; } (...) }
And finally Tour.java:
public class Tour extends Piece { (...) public Tour(Couleur couleurParam){ super(couleurParam); } (...) }
All the .java files are in the same folder. Yet at compile I get a "cannot find symbol symbol : variable NOIR location: class Plateau"
(Plateau is the class that instantiates Tour.)
Can anyone help me figure out what's wrong here?
Many thanks,
JDelage