Removed useless comments.

This commit is contained in:
Peter Osterlund
2016-12-25 13:20:14 +01:00
parent 82d2daa29d
commit 1808bbb10c
61 changed files with 26 additions and 233 deletions

View File

@@ -33,10 +33,7 @@ import org.petero.droidfish.gamelogic.Position;
import org.petero.droidfish.gamelogic.TextIO;
import org.petero.droidfish.gamelogic.Pair;
/**
* Implements an opening book.
* @author petero
*/
/** Implements an opening book. */
public final class DroidBook {
static final class BookEntry {
Move move;

View File

@@ -36,10 +36,7 @@ import org.petero.droidfish.gamelogic.UndoInfo;
import org.petero.droidfish.gamelogic.SearchListener.PvInfo;
import org.petero.droidfish.tb.Probe;
/**
* A computer algorithm player.
* @author petero
*/
/** A computer algorithm player. */
public class DroidComputerPlayer {
private UCIEngine uciEngine = null;
private final SearchListener listener;

View File

@@ -32,10 +32,7 @@ import org.petero.droidfish.EngineOptions;
import org.petero.droidfish.engine.LocalPipe;
import org.petero.droidfish.engine.UCIEngineBase;
/**
* UCI interface to cuckoochess engine.
* @author petero
*/
/** UCI interface to cuckoochess engine. */
public class CuckooChessEngine extends UCIEngineBase {
// Data set by the "position" command.

View File

@@ -38,10 +38,7 @@ import java.util.Random;
import org.petero.droidfish.engine.LocalPipe;
/**
* Control the search thread.
* @author petero
*/
/** Control the search thread. */
public class DroidEngineControl {
LocalPipe os;

View File

@@ -22,10 +22,7 @@ import chess.Move;
import java.util.ArrayList;
import java.util.List;
/**
* Store search parameters (times, increments, max depth, etc).
* @author petero
*/
/** Store search parameters (times, increments, max depth, etc). */
public class SearchParams {
List<Move> searchMoves; // If non-empty, search only these moves
int wTime; // White remaining time, ms

View File

@@ -18,10 +18,7 @@
package org.petero.droidfish.gamelogic;
/**
* Exception class to represent parse errors in FEN or algebraic notation.
* @author petero
*/
/** Exception class to represent parse errors in FEN or algebraic notation. */
public class ChessParseError extends Exception {
private static final long serialVersionUID = -6051856171275301175L;

View File

@@ -44,10 +44,7 @@ import org.petero.droidfish.engine.DroidComputerPlayer.SearchType;
import org.petero.droidfish.gamelogic.Game.GameState;
import org.petero.droidfish.gamelogic.GameTree.Node;
/**
* The glue between the chess engine and the GUI.
* @author petero
*/
/** The glue between the chess engine and the GUI. */
public class DroidChessController {
private DroidComputerPlayer computerPlayer = null;
private PgnToken.PgnTokenReceiver gameTextListener = null;

View File

@@ -27,10 +27,6 @@ import java.util.List;
import org.petero.droidfish.PGNOptions;
import org.petero.droidfish.gamelogic.GameTree.Node;
/**
*
* @author petero
*/
public class Game {
boolean pendingDrawOffer;
public GameTree tree;

View File

@@ -18,10 +18,6 @@
package org.petero.droidfish.gamelogic;
/**
*
* @author petero
*/
public class Move {
/** From square, 0-63. */
public int from;

View File

@@ -21,10 +21,6 @@ package org.petero.droidfish.gamelogic;
import java.util.ArrayList;
/**
*
* @author petero
*/
public class MoveGen {
public static MoveGen instance;
static {

View File

@@ -18,10 +18,7 @@
package org.petero.droidfish.gamelogic;
/**
* A small helper class that makes it possible to return two values from a function.
* @author petero
*/
/** A helper class that makes it possible to return two values from a function. */
public final class Pair<T1, T2> {
public final T1 first;
public final T2 second;

View File

@@ -19,10 +19,7 @@
package org.petero.droidfish.gamelogic;
/**
* Constants for different piece types.
* @author petero
*/
/** Constants for different piece types. */
public class Piece {
public static final int EMPTY = 0;

View File

@@ -27,7 +27,6 @@ import java.security.NoSuchAlgorithmException;
* since the last capture or pawn move. That state is only needed
* for three-fold repetition draw detection, and is better stored
* in a separate hash table.
* @author petero
*/
public class Position {
private int[] squares;

View File

@@ -26,10 +26,7 @@ import org.petero.droidfish.PGNOptions;
import org.petero.droidfish.R;
/**
* Handle conversion of positions and moves to/from text format.
* @author petero
*/
/** Handle conversion of positions and moves to/from text format. */
public class TextIO {
static public final String startPosFEN = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";

View File

@@ -21,7 +21,6 @@ package org.petero.droidfish.gamelogic;
/**
* Contains enough information to undo a previous move.
* Set by makeMove(). Used by unMakeMove().
* @author petero
*/
public class UndoInfo {
int capturedPiece;