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 Rect labelBounds = null;
private void drawLabel(Canvas canvas, int xCrd, int yCrd, boolean right, private final void drawLabel(Canvas canvas, int xCrd, int yCrd, boolean right,
boolean bottom, char c) { boolean bottom, char c) {
String s = ""; String s = "";
s += c; s += c;
if (labelBounds == null) { if (labelBounds == null) {

View File

@@ -37,7 +37,8 @@ public interface GUIInterface {
final static class GameStatus { final static class GameStatus {
public Game.GameState state = Game.GameState.ALIVE; public Game.GameState state = Game.GameState.ALIVE;
public int moveNr = 0; 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 white = false;
public boolean ponder = false; public boolean ponder = false;
public boolean thinking = false; public boolean thinking = false;

View File

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

View File

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

View File

@@ -149,7 +149,7 @@ public class Position {
return (x & 1) == (y & 1); return (x & 1) == (y & 1);
} }
/** Return piece occuping a square. */ /** Return piece occupying a square. */
public final int getPiece(int square) { public final int getPiece(int square) {
return squares[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 interface SearchListener {
public final static class PvInfo { public final static class PvInfo {