Changed management of config file, openbook and problems.

Files can now be included in the jarfile.
This commit is contained in:
2006-11-12 21:14:13 +00:00
parent f1e8cd0784
commit 7ff417b453
5 changed files with 43 additions and 24 deletions

View File

@ -37,7 +37,7 @@ public class SuicideChess {
/**
* Use mobility in evaluation function (slows the program down a lot)
*/
public static final boolean USE_MOBILITY = true;
public static final boolean USE_MOBILITY = false;
/**
* do move ordering in Alpha-Beta pruning ?
@ -63,7 +63,7 @@ public class SuicideChess {
/**
* Quiescence search -> don't evaluate if captures are possible.
*/
public static final boolean QUIESCENCE_SEARCH = false;
public static final boolean QUIESCENCE_SEARCH = true;
/**
* Quiescence limit (ie. if more than that many possibilities of capturing, don't analyse further.
@ -99,7 +99,7 @@ public class SuicideChess {
/**
* The name to be displayed
*/
public static final String NAME = "djib's SuShi v1.0.4";
public static final String NAME = "djib's SuShi v1.0.5";
/**
* Displays informations in the console.
@ -225,7 +225,7 @@ public class SuicideChess {
try {
String whatMove= moveInput.readLine();
boolean playedALegalMove = false;
//System.out.println("Got message from xboard: "+whatMove);
if (whatMove.startsWith("help")) {
System.out.println("==================== Quick help ====================\nEnter moves in SAN notation : e2e3, e7e8r, ...\n");
System.out.println("new\t\t\tcreates a new game");
@ -433,8 +433,8 @@ public class SuicideChess {
System.out.println("Capturing is mandatory.");
}
//bitboard.debug();
for (int moveIndex = 0; moveIndex < allLegalMoves.size(); moveIndex++)
System.out.println(allLegalMoves.get(moveIndex));
//for (int moveIndex = 0; moveIndex < allLegalMoves.size(); moveIndex++)
// System.out.println(allLegalMoves.get(moveIndex));
System.out.println("Illegal move: "+theMove.toString());
} else {
bitboard.doMove(allLegalMoves.get(foundMoveIndex));