-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #333 from lrozenblyum/DifferentBrainSelectableCLI#278
Different brain are selectable from cli. #278
- Loading branch information
Showing
16 changed files
with
336 additions
and
355 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
@rem ======================================================= | ||
@rem Runs 2-engine match between Chess deployed to <WinboardRoot>/LeokomChess and <WinboardRoot>/LeokomChessTest | ||
@rem Pre-requisites: | ||
@rem variables.bat contains correct configuration | ||
@rem ======================================================= | ||
|
||
%~d0 | ||
cd %~p0 | ||
|
||
call variables.bat | ||
SET RUNNABLE_JAR_DIRECTORY_2=%WINBOARD_INSTALLATION_PATH%\LeokomChessTest | ||
SET RUN_JAR_PATH_2=%RUNNABLE_JAR_DIRECTORY_2%\Chess.jar | ||
|
||
@rem you may specify -Dblack.engine=Simple (or -Dblack=Simple if the second instance is Chess <= 0.3) | ||
@rem for LegalPlayer you may specify -Dblack.depth=2 (if the second instance is Chess >= 0.4) | ||
SET RUN_OPTIONS_2= | ||
SET ENGINE_2=%JAVA_PATH% %RUN_OPTIONS_2% -jar %RUN_JAR_PATH_2% | ||
|
||
SET MATCHES_COUNT=1 | ||
|
||
@rem to turn on debug mode add -debug | ||
@rem it will create winboard debug log | ||
|
||
@rem -mg means match game | ||
@rem -testClaims disabled claims test in order to allow draw claim manually from the engine without adjudication | ||
%WINBOARD_PATH% ^ | ||
-debug ^ | ||
-reuseFirst false ^ | ||
-mg %MATCHES_COUNT% ^ | ||
-fcp "%ENGINE%" ^ | ||
-fd "%RUNNABLE_JAR_DIRECTORY%" ^ | ||
-scp "%ENGINE_2%" ^ | ||
-sd "%RUNNABLE_JAR_DIRECTORY_2%" ^ | ||
-testClaims false | ||
@rem ======================================================= | ||
@rem Runs 2-engine match between Chess deployed to <WinboardRoot>/LeokomChess and <WinboardRoot>/LeokomChessTest | ||
@rem Pre-requisites: | ||
@rem variables.bat contains correct configuration | ||
@rem ======================================================= | ||
|
||
%~d0 | ||
cd %~p0 | ||
|
||
call variables.bat | ||
SET RUNNABLE_JAR_DIRECTORY_2=%WINBOARD_INSTALLATION_PATH%\LeokomChessTest | ||
SET RUN_JAR_PATH_2=%RUNNABLE_JAR_DIRECTORY_2%\Chess.jar | ||
|
||
@rem you may specify -Dblack.engine=brain.simple or brain.denormalized for Chess 0.5+ | ||
@rem you may specify -Dblack.engine=Simple for Chess 0.4 | ||
@rem you may specify -Dblack=Simple for Chess <= 0.3 | ||
@rem for brain.normalized you may specify -Dblack.depth=2 (if the second instance is Chess >= 0.4) | ||
SET RUN_OPTIONS_2= | ||
SET ENGINE_2=%JAVA_PATH% %RUN_OPTIONS_2% -jar %RUN_JAR_PATH_2% | ||
|
||
SET MATCHES_COUNT=1 | ||
|
||
@rem to turn on debug mode add -debug | ||
@rem it will create winboard debug log | ||
|
||
@rem -mg means match game | ||
@rem -testClaims disabled claims test in order to allow draw claim manually from the engine without adjudication | ||
%WINBOARD_PATH% ^ | ||
-debug ^ | ||
-reuseFirst false ^ | ||
-mg %MATCHES_COUNT% ^ | ||
-fcp "%ENGINE%" ^ | ||
-fd "%RUNNABLE_JAR_DIRECTORY%" ^ | ||
-scp "%ENGINE_2%" ^ | ||
-sd "%RUNNABLE_JAR_DIRECTORY_2%" ^ | ||
-testClaims false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
@rem ======================================================= | ||
@rem Tunes common settings: | ||
@rem * Winboard location | ||
@rem * Java executable location | ||
@rem * All derivatives and default engine settings | ||
@rem ======================================================= | ||
|
||
@rem the variables should be tuned per target environment | ||
SET WINBOARD_INSTALLATION_PATH=E:\Games\WinBoard-4.8.0 | ||
SET JAVA_PATH=Q:\Program Files\Java\jdk1.8.0_162\bin\java.exe | ||
|
||
@rem UI that we use to run our Chess with | ||
SET WINBOARD_PATH=%WINBOARD_INSTALLATION_PATH%\WinBoard\winboard.exe | ||
@rem I use the Winboard installation as a Chess deployment target | ||
@rem it should be equal to 'project.deployDirectory' property in pom.xml | ||
SET RUNNABLE_JAR_DIRECTORY=%WINBOARD_INSTALLATION_PATH%\LeokomChess | ||
SET RUN_JAR_PATH=%RUNNABLE_JAR_DIRECTORY%\Chess.jar | ||
@rem you may pass -Dblack.engine=Simple to choose a different engine for blacks | ||
@rem for LegalPlayer you may specify -Dblack.depth (1 or 2) | ||
SET RUN_OPTIONS=-Dblack.depth=2 | ||
|
||
@rem ======================================================= | ||
@rem Tunes common settings: | ||
@rem * Winboard location | ||
@rem * Java executable location | ||
@rem * All derivatives and default engine settings | ||
@rem ======================================================= | ||
|
||
@rem the variables should be tuned per target environment | ||
SET WINBOARD_INSTALLATION_PATH=E:\Games\WinBoard-4.8.0 | ||
SET JAVA_PATH=Q:\Program Files\Java\jdk1.8.0_162\bin\java.exe | ||
|
||
@rem UI that we use to run our Chess with | ||
SET WINBOARD_PATH=%WINBOARD_INSTALLATION_PATH%\WinBoard\winboard.exe | ||
@rem I use the Winboard installation as a Chess deployment target | ||
@rem it should be equal to 'project.deployDirectory' property in pom.xml | ||
SET RUNNABLE_JAR_DIRECTORY=%WINBOARD_INSTALLATION_PATH%\LeokomChess | ||
SET RUN_JAR_PATH=%RUNNABLE_JAR_DIRECTORY%\Chess.jar | ||
@rem you may pass -Dblack.engine=brain.simple or brain.denormalized to choose a different engine for blacks | ||
@rem for brain.normalized you may specify -Dblack.depth (1 or 2) | ||
SET RUN_OPTIONS=-Dblack.depth=2 | ||
|
||
SET ENGINE=%JAVA_PATH% %RUN_OPTIONS% -jar %RUN_JAR_PATH% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
src/main/java/com/leokom/chess/player/legal/LegalPlayerSupplier.java
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/main/java/com/leokom/chess/player/legal/brain/simple/SimplePlayerSupplier.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
src/main/java/com/leokom/chess/player/winboard/WinboardPlayerSupplier.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.