mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-12 09:02:41 +01:00
DroidFish: Minor comment improvements.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user