DroidFish: Minor comment improvements.

This commit is contained in:
Peter Osterlund
2011-12-28 00:56:35 +00:00
parent 8cdb10a075
commit af932e3a54
6 changed files with 13 additions and 6 deletions

View File

@@ -509,8 +509,8 @@ public class ChessBoard extends View {
private Rect labelBounds = null;
private void drawLabel(Canvas canvas, int xCrd, int yCrd, boolean right,
boolean bottom, char c) {
private final void drawLabel(Canvas canvas, int xCrd, int yCrd, boolean right,
boolean bottom, char c) {
String s = "";
s += c;
if (labelBounds == null) {

View File

@@ -37,7 +37,8 @@ public interface GUIInterface {
final static class GameStatus {
public Game.GameState state = Game.GameState.ALIVE;
public int moveNr = 0;
public String drawInfo = ""; // Move required to claim draw, or empty string
/** Move required to claim draw, or empty string. */
public String drawInfo = "";
public boolean white = false;
public boolean ponder = false;
public boolean thinking = false;

View File

@@ -44,7 +44,9 @@ public class DroidComputerPlayer {
private UCIEngine uciEngine = null;
private SearchListener listener;
private DroidBook book;
/** Set when "ucinewgame" needs to be sent. */
private boolean newGame = false;
/** Engine identifier, "cuckoochess" or "stockfish". */
private String engine = "";
/** >1 if multiPV mode is supported. */
private int maxPV = 1;

View File

@@ -44,8 +44,12 @@ public interface UCIEngine {
/** Add strength information to the engine name. */
public String addStrengthToName();
/** Set an engine option. */
/** Set an engine integer option. */
public void setOption(String name, int value);
/** Set an engine boolean option. */
public void setOption(String name, boolean value);
/** Set an engine string option. */
public void setOption(String name, String value);
}

View File

@@ -149,7 +149,7 @@ public class Position {
return (x & 1) == (y & 1);
}
/** Return piece occuping a square. */
/** Return piece occupying a square. */
public final int getPiece(int square) {
return squares[square];
}

View File

@@ -23,7 +23,7 @@ import java.util.List;
/**
* Used to get various search information during search
* Used to get various search information during search.
*/
public interface SearchListener {
public final static class PvInfo {