Fixed documentation
This commit is contained in:
		@@ -97,7 +97,6 @@ public class Board implements Cloneable {
 | 
				
			|||||||
	 * Moves a piece across the board without checking if the move is legal.
 | 
						 * Moves a piece across the board without checking if the move is legal.
 | 
				
			||||||
	 * 
 | 
						 * 
 | 
				
			||||||
	 * @param move The move to execute
 | 
						 * @param move The move to execute
 | 
				
			||||||
	 * @return The captures piece, or null if the move's destination was empty
 | 
					 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	public void move(Move move) {
 | 
						public void move(Move move) {
 | 
				
			||||||
		Piece	piece			= getPos(move);
 | 
							Piece	piece			= getPos(move);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -81,7 +81,7 @@ public interface UCIListener {
 | 
				
			|||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * The engine sends information to the GUI.
 | 
						 * The engine sends information to the GUI.
 | 
				
			||||||
	 * 
 | 
						 * 
 | 
				
			||||||
	 * @param additionalInfo Contains all pieces of information to be sent
 | 
						 * @param info Contains all pieces of information to be sent
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	default void onInfo(UCIInfo info) {}
 | 
						default void onInfo(UCIInfo info) {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -53,6 +53,9 @@ public class MainWindow {
 | 
				
			|||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Initialize the contents of the frame.
 | 
						 * Initialize the contents of the frame.
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
 | 
						@SuppressWarnings(
 | 
				
			||||||
 | 
							"unused"
 | 
				
			||||||
 | 
						)
 | 
				
			||||||
	private void initialize() {
 | 
						private void initialize() {
 | 
				
			||||||
		mframe = new JFrame("Chess by Kai S. K. Engelbart");
 | 
							mframe = new JFrame("Chess by Kai S. K. Engelbart");
 | 
				
			||||||
		mframe.setResizable(false);
 | 
							mframe.setResizable(false);
 | 
				
			||||||
@@ -65,7 +68,10 @@ public class MainWindow {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		JPanel toolPanel = new JPanel();
 | 
							JPanel toolPanel = new JPanel();
 | 
				
			||||||
		btnRestart = new JButton("Restart");
 | 
							btnRestart = new JButton("Restart");
 | 
				
			||||||
		btnRestart.addActionListener((evt) -> { if (game != null) game.reset(); game.start(); });
 | 
							btnRestart.addActionListener((evt) -> {
 | 
				
			||||||
 | 
								if (game != null) game.reset();
 | 
				
			||||||
 | 
								game.start();
 | 
				
			||||||
 | 
							});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		activeColor		= Color.WHITE;
 | 
							activeColor		= Color.WHITE;
 | 
				
			||||||
		btnSwapColors	= new JButton("Play as black");
 | 
							btnSwapColors	= new JButton("Play as black");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user