mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-27 14:15:16 +01:00
DroidFish: Made member variables in DroidComputerPlayer non-static. There is only one DroidComputerPlayer object anyway.
This commit is contained in:
parent
ed349128d7
commit
71b7ec9bac
|
@ -39,25 +39,21 @@ import org.petero.droidfish.gamelogic.SearchListener.PvInfo;
|
|||
* @author petero
|
||||
*/
|
||||
public class DroidComputerPlayer {
|
||||
private static String engineName = "";
|
||||
private String engineName = "";
|
||||
|
||||
private static UCIEngine uciEngine = null;
|
||||
private UCIEngine uciEngine = null;
|
||||
private SearchListener listener;
|
||||
private DroidBook book;
|
||||
private boolean newGame = false;
|
||||
private String engine = "";
|
||||
private int maxPV = 1; // >1 if multiPV mode is supported
|
||||
private static int numCPUs = 1;
|
||||
private int numCPUs = 1;
|
||||
|
||||
private boolean havePonderHit = false;
|
||||
|
||||
public DroidComputerPlayer(String engine) {
|
||||
this.engine = engine;
|
||||
if (uciEngine != null) {
|
||||
stopSearch();
|
||||
} else {
|
||||
startEngine();
|
||||
}
|
||||
startEngine();
|
||||
listener = null;
|
||||
book = DroidBook.getInstance();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user