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

@@ -32,10 +32,7 @@ import java.util.List;
import java.util.Map;
import java.util.Random;
/**
* Implements an opening book.
* @author petero
*/
/** Implements an opening book. */
public class Book {
public static class BookEntry {
Move move;

View File

@@ -18,10 +18,7 @@
package chess;
/**
* 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;
public ChessParseError() {

View File

@@ -22,10 +22,7 @@ import java.security.SecureRandom;
import java.util.List;
import java.util.Random;
/**
* A computer algorithm player.
* @author petero
*/
/** A computer algorithm player. */
public class ComputerPlayer implements Player {
public static final String engineName;

View File

@@ -21,11 +21,7 @@ package chess;
import java.io.IOException;
import java.io.InputStream;
/**
* Position evaluation routines.
*
* @author petero
*/
/** Position evaluation routines. */
public class Evaluate {
static final int pV = 92 + Parameters.instance().getIntPar("pV");
static final int nV = 385 + Parameters.instance().getIntPar("nV");

View File

@@ -23,10 +23,6 @@ import java.util.Collections;
import java.util.List;
import java.util.Locale;
/**
*
* @author petero
*/
public class Game {
protected List<Move> moveList = null;
protected List<UndoInfo> uiInfoList = null;

View File

@@ -18,10 +18,7 @@
package chess;
/**
* Implements the relative history heuristic.
* @author petero
*/
/** Implements the relative history heuristic. */
public final class History {
private int countSuccess[][];
private int countFail[][];

View File

@@ -24,10 +24,7 @@ import java.io.InputStreamReader;
import java.util.List;
import java.util.Locale;
/**
* A player that reads input from the keyboard.
* @author petero
*/
/** A player that reads input from the keyboard. */
public class HumanPlayer implements Player {
private String lastCmd = "";
private BufferedReader in;

View File

@@ -18,10 +18,7 @@
package chess;
/**
* Implement a table of killer moves for the killer heuristic.
* @author petero
*/
/** Implement a table of killer moves for the killer heuristic. */
public class KillerTable {
/** There is one KTEntry for each ply in the search tree. */
static final class KTEntry {

View File

@@ -20,10 +20,6 @@ package chess;
import java.util.Comparator;
/**
*
* @author petero
*/
public class Move {
/** From square, 0-63. */
public int from;

View File

@@ -20,10 +20,6 @@ package chess;
import java.util.List;
/**
*
* @author petero
*/
public final class MoveGen {
static final MoveGen instance;
static {

View File

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

View File

@@ -20,10 +20,7 @@ package chess;
import java.util.List;
/**
* Interface for human/computer players.
* @author petero
*/
/** Interface for human/computer players. */
public interface Player {
/**
* Get a command from a player.

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 {
public int[] squares;

View File

@@ -24,10 +24,6 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
/**
*
* @author petero
*/
public class Search {
final static int plyScale = 8; // Fractional ply resolution

View File

@@ -20,10 +20,6 @@ package chess;
import java.util.Locale;
/**
*
* @author petero
*/
public class TextIO {
static public final String startPosFEN = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";

View File

@@ -21,10 +21,6 @@ package chess;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author petero
*/
public class TranspositionTable {
static final public class TTEntry {
long key; // Zobrist hash key

View File

@@ -18,10 +18,7 @@
package chess;
/**
* 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 TwoReturnValues<T1, T2> {
public final T1 first;
public final T2 second;

View File

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

View File

@@ -39,10 +39,7 @@ import java.util.List;
import java.util.Locale;
import java.util.Scanner;
/**
* The glue between the chess engine and the GUI.
* @author petero
*/
/** The glue between the chess engine and the GUI. */
public class ChessController {
Player humanPlayer;
ComputerPlayer computerPlayer;