Kōhai 1.0 is a direct derivative of Senpai 1.0. The changes made are very modest and were related to LMR Reductions and piece values. I estimate the increase to be about modest ~10 ELO over Senpai 1.0.
@echo off
TITLE Compile Kohai source
REM ----------------------------------------------------------------------------------------
REM talk=0 Hide some text, no pauses during compilation
REM talk=1 Show extra info and pause during compilation
REM ----------------------------------------------------------------------------------------
set talk=1
REM ----------------------------------------------------------------------------------------
REM Program paths and names
REM ----------------------------------------------------------------------------------------
set mindir=D:\MinGW
set srcdir=D:\MinGW\Kohai-Chess-master
set engdir=D:\Arena\Engines\Kohai
set cmpnam=Kohai-Chess-master.exe
set newnam=Kohai_1_64bit.exe
echo.
echo ---------------------
for /f "skip=1" %%D in ('WMIC os get LocalDateTime') do (set LIDATE=%%D & goto GOT_DATE)
:GOT_DATE
rem LIDATE fields:
rem yymmdd %LIDATE:~2,6%
rem ccyy %LIDATE:~0,4%
rem mm %LIDATE:~4,2%
rem dd %LIDATE:~6,2%
rem hh %LIDATE:~8,2%
rem mm %LIDATE:~10,2%
rem ss %LIDATE:~12,2%
set date1=%LIDATE:~2,6%
echo Date is %date1%
echo ---------------------
echo.
echo ---------------------
echo Set PATH
echo ---------------------
set PATH=%mindir%\mingw64\bin;%mindir%\msys\1.0\bin;%PATH%
if %talk%==1 echo %PATH%
cd %srcdir%
if %talk%==1 echo.
if %talk%==1 pause
echo.
echo -----------------------------
echo Compile sources using gcc
echo -----------------------------
mingw32-make g-gon -j 8
if errorlevel 1 goto COMPERR
if %talk%==1 echo.
if %talk%==1 pause
echo.
echo ---------------------
echo Tidy and rename
echo ---------------------
if exist kohai_%date1%.exe del kohai_%date1%.exe /q
ren %cmpnam% kohai_%date1%.exe
mingw32-make clean
echo.
echo ---------------------
echo Copy to Arena
echo ---------------------
copy %srcdir%\kohai*.exe %engdir%\*.*
for %%v in (kohai*.exe) do del %%v /q
cd %engdir%
if exist "%newnam%" del "%newnam%" /q
copy kohai_%date1%.exe "%newnam%"
echo.
echo DONE!
if %talk%==1 pause
goto ENDP
:COMPERR
echo.
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo !!! Compilation error !!!
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo.
pause
:ENDP
changed the name of "g++"
added "-march=native -mtune=native" as it seems to help with Stockfish
added a ".exe" to the strip line
removed upx2 (as it didn't work for me)
I'm no C++ expert so these may or may not make sense, but they do at least work!
The latest has a makefile change that sped Konai up by about 5%, which should be worth a couple of ELO. Latest Mac exe, make file etc are on Github.
The two crafty's below 0607c and 0607d were experimental versions which did not pan out obviously. Although northing new to report on crafty, you can rest assured it is being worked on.