Fixed documentation

This commit is contained in:
Kai S. K. Engelbart 2019-08-23 21:10:19 +02:00
parent 37c12f5fdb
commit 7271f7b3a3
3 changed files with 8 additions and 3 deletions

View File

@ -97,7 +97,6 @@ public class Board implements Cloneable {
* Moves a piece across the board without checking if the move is legal.
*
* @param move The move to execute
* @return The captures piece, or null if the move's destination was empty
*/
public void move(Move move) {
Piece piece = getPos(move);

View File

@ -81,7 +81,7 @@ public interface UCIListener {
/**
* 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) {}

View File

@ -53,6 +53,9 @@ public class MainWindow {
/**
* Initialize the contents of the frame.
*/
@SuppressWarnings(
"unused"
)
private void initialize() {
mframe = new JFrame("Chess by Kai S. K. Engelbart");
mframe.setResizable(false);
@ -65,7 +68,10 @@ public class MainWindow {
JPanel toolPanel = new JPanel();
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;
btnSwapColors = new JButton("Play as black");