Some quick shots
- a
ifcondition written likeif (booleanVariable==true)can be simplified toif (booleanVariable) - you shouldn't have public variables like
public boolean white; - no constructor of
Game,Board,PlayerandPieceshould callsuper()because they are obviously not inheriting / extending any class.
Some design quickshots
- a chessgame needs a Board, 2 Players and 32 pieces.
- the pieces are part of the Board
- the Player moves the piece by rules
- the rules are bound to the type of piece and the pieces position on the board
- these rules needs to be evaluated by some object, either the
Gameor aRuleEvaluator.