mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-10 08:02:40 +01:00
Removed useless comments.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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[][];
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -20,10 +20,6 @@ package chess;
|
||||
|
||||
import java.util.Comparator;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author petero
|
||||
*/
|
||||
public class Move {
|
||||
/** From square, 0-63. */
|
||||
public int from;
|
||||
|
||||
@@ -20,10 +20,6 @@ package chess;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author petero
|
||||
*/
|
||||
public final class MoveGen {
|
||||
static final MoveGen instance;
|
||||
static {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user