package com.editev.chess.printer; import com.editev.chess.GameHTML; /** Prints the entire board. * * @see See the source here. */ public class BoardPrinter extends Printer { /** Prints just a single square. */ public static Printer squarePrinter = new SquarePrinter(); /** Prints the entire board. * @param game the GameHTML with the board status and PrintStream for this board. */ public void print( GameHTML game ) { if (game.target == NO_MOVE) game.counts.computePieceMoves( game ); // compute all starting moves else game.counts.computePieceTargets( game, game.target ); // compute all final moves. game.out.startTag( "