Fixed documentation

This commit is contained in:
Kai S. K. Engelbart 2019-08-23 21:10:19 +02:00
parent 79f55597c9
commit 20e9c8b36e
Signed by: kske
GPG Key ID: 8BEB13EC5DF7EF13
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. * 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);

View File

@ -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) {}

View File

@ -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");