Frank Walter

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

User avatar
CMCanavessi
Posts: 1142
Joined: Thu Dec 28, 2017 4:06 pm
Location: Argentina

Re: Frank Walter

Post by CMCanavessi »

You can just point to the java.exe version that you want.
Follow my tournament and some Leela gauntlets live at http://twitch.tv/ccls
ljgw
Posts: 68
Joined: Fri Nov 16, 2018 10:23 am
Full name: Laurens Winkelhagen

Re: Frank Walter

Post by ljgw »

Gabor Szots wrote: Wed Nov 28, 2018 5:59 pm
AdminX wrote: Wed Nov 28, 2018 5:19 pm
Gabor Szots wrote: Wed Nov 28, 2018 3:45 pm
Gabor Szots wrote: Wed Nov 28, 2018 10:20 am Thank you Laurens for the quick repair.
Hmm, this one does not move either.
It worked for me in a quick eng vs eng match.
I wonder if it is a java version problem again. I have j8 and j11, maybe the path points to the wrong one.

EDIT: I have just checked and my Arena uses the 8.191 version.
Hmm, that is unfortunate!

FrankWalter should run on both, It is compiled for Java 8, but I tested it on windows with arena with Java 11. Can you maybe post the logging (the logging you see after pressing F4) here, so that I can look into this?

Thanks!
--Laurens
Author of JanWillem (C, WB, inactive) and FrankWalter (Java, WB, https://github.com/ljgw/frankwalter)
Gabor Szots
Posts: 1365
Joined: Sat Jul 21, 2018 7:43 am
Location: Szentendre, Hungary
Full name: Gabor Szots

Re: Frank Walter

Post by Gabor Szots »

I'm going to look into this tomorrow. Today there are too many matches. :wink:
Gabor Szots
CCRL testing group
User avatar
AdminX
Posts: 6344
Joined: Mon Mar 13, 2006 2:34 pm
Location: Acworth, GA

Re: Frank Walter

Post by AdminX »

Gabor Szots wrote: Wed Nov 28, 2018 5:59 pm
AdminX wrote: Wed Nov 28, 2018 5:19 pm
Gabor Szots wrote: Wed Nov 28, 2018 3:45 pm
Gabor Szots wrote: Wed Nov 28, 2018 10:20 am Thank you Laurens for the quick repair.
Hmm, this one does not move either.
It worked for me in a quick eng vs eng match.
I wonder if it is a java version problem again. I have j8 and j11, maybe the path points to the wrong one.

EDIT: I have just checked and my Arena uses the 8.191 version.
I was using the Shredder GUI, however I just checked using Arena and it still works. So it just may be a Java issue.

https://i.ibb.co/28hH2XX/Untitled2.png
"Good decisions come from experience, and experience comes from bad decisions."
__________________________________________________________________
Ted Summers
Gabor Szots
Posts: 1365
Joined: Sat Jul 21, 2018 7:43 am
Location: Szentendre, Hungary
Full name: Gabor Szots

Re: Frank Walter

Post by Gabor Szots »

Strange. All java engines work all right for me expect FrankWalter. Still does not move. BTW, I thought it was a WinBoard engine, not UCI.
Gabor Szots
CCRL testing group
Gabor Szots
Posts: 1365
Joined: Sat Jul 21, 2018 7:43 am
Location: Szentendre, Hungary
Full name: Gabor Szots

Re: Frank Walter

Post by Gabor Szots »

Laurens, here is what I get from Arena upon pressing F4.
2018-11-29 09:57:31,834-->1:?
2018-11-29 09:57:31,834-->1:force
2018-11-29 09:57:31,834-->1:quit
2018-11-29 09:57:37,301*1*-----------------Starting engine 1 FrankWalter 2.2.2 64-bit-----------------
2018-11-29 09:57:37,316*1*Configured Engine 1 Type: WB2
2018-11-29 09:57:37,316*1*Engine 1 dir: E:\Sakk\WB-engines\FrankWalter
2018-11-29 09:57:37,316*1*Engine 1 commandline: java -jar E:\Sakk\WB-engines\FrankWalter\frankwalter_2.2.2.jar
2018-11-29 09:57:37,431*1*Child Process Prio Adj: PID 6832 conhost.exe
2018-11-29 09:57:37,431*1*Engine 1 ProcessID: 3356
2018-11-29 09:57:37,431*1*Engine 1 Prio:32 ThreadPrio:0
2018-11-29 09:57:37,431-->1:xboard
2018-11-29 09:57:37,431-->1:protover 2
2018-11-29 09:57:37,837<--1:#[INFO ] 2018-11-29 09:57:37.837 [MAIN] ZobristHash - Created new ZobristHash
2018-11-29 09:57:37,837<--1:#[INFO ] 2018-11-29 09:57:37.837 [MAIN] ZobristHash - Created new ZobristHash
2018-11-29 09:57:37,837<--1:#[DEBUG] 2018-11-29 09:57:37.837 [MAIN] Board - Assertions are disabled.
2018-11-29 09:57:37,884<--1:#[INFO ] 2018-11-29 09:57:37.853 [MAIN] FrankWalter - Started FrankWalter 2.2.2-SNAPSHOT
2018-11-29 09:57:37,884<--1:#[DEBUG] 2018-11-29 09:57:37.853 [MAIN] FWConfig - DEBUG : false
2018-11-29 09:57:37,915<--1:#[DEBUG] 2018-11-29 09:57:37.853 [MAIN] FWConfig - TT_SIZE : 24
2018-11-29 09:57:37,915<--1:#[DEBUG] 2018-11-29 09:57:37.853 [MAIN] FWConfig - TB_LOCATION : null
2018-11-29 09:57:37,946<--1:#[DEBUG] 2018-11-29 09:57:37.868 [MAIN] Game - State change: off -> pause
2018-11-29 09:57:37,978<--1:#[INFO ] 2018-11-29 09:57:37.868 [MAIN] InputReader - Game started normally
2018-11-29 09:57:38,009<--1:#[DEBUG] 2018-11-29 09:57:37.868 [MAIN] Game - State change: pause -> pause
2018-11-29 09:57:38,040<--1:#[INFO ] 2018-11-29 09:57:37.868 [inputReader] InputReader - Started Userinterface
2018-11-29 09:57:38,071<--1:#[DEBUG] 2018-11-29 09:57:37.868 [inputReader] InputReader - UserInput = 'xboard'
2018-11-29 09:57:38,103<--1:#[DEBUG] 2018-11-29 09:57:37.868 [inputReader] Game - State change: pause -> init
2018-11-29 09:57:38,134<--1:#[DEBUG] 2018-11-29 09:57:37.868 [inputReader] InputReader - UserInput = 'protover 2'
2018-11-29 09:57:38,134<--1:feature done=0
2018-11-29 09:57:38,134-->1:accepted done
2018-11-29 09:57:38,134<--1:#[INFO ] 2018-11-29 09:57:37.884 [MAIN] BoardState - initializing TranspositionTables with magnitude 24 (256 MB)
2018-11-29 09:57:38,165<--1:#[INFO ] 2018-11-29 09:57:37.884 [inputReader] SyzygyBridge - looking for JSyzygy.dll at location E:\Sakk\WB-engines\FrankWalter\JSyzygy.dll
2018-11-29 09:57:38,196<--1:#[INFO ] 2018-11-29 09:57:37.884 [inputReader] SyzygyBridge - loaded JSyzygy.dll located next to the .jar file
2018-11-29 09:57:38,228<--1:feature egt="syzygy"
2018-11-29 09:57:38,228-->1:accepted egt
2018-11-29 09:57:38,259<--1:feature setboard=1
2018-11-29 09:57:38,259-->1:accepted setboard
2018-11-29 09:57:38,290<--1:feature playother=1
2018-11-29 09:57:38,290-->1:accepted playother
2018-11-29 09:57:38,321<--1:feature usermove=1
2018-11-29 09:57:38,321-->1:accepted usermove
2018-11-29 09:57:38,353<--1:feature debug=1
2018-11-29 09:57:38,353-->1:accepted debug
2018-11-29 09:57:38,384<--1:feature colors=0
2018-11-29 09:57:38,384-->1:accepted colors
2018-11-29 09:57:38,415<--1:feature analyze=0
2018-11-29 09:57:38,415-->1:accepted analyze
2018-11-29 09:57:38,415<--1:feature sigint=0
2018-11-29 09:57:38,415-->1:accepted sigint
2018-11-29 09:57:38,415<--1:feature variants="normal"
2018-11-29 09:57:38,415-->1:accepted variants
2018-11-29 09:57:38,446<--1:feature myname="Frank-Walter 2.2.2-780237e"
2018-11-29 09:57:38,478<--1:#[INFO ] 2018-11-29 09:57:38.009 [MAIN] ZobristHash - Created new ZobristHash
2018-11-29 09:57:38,509<--1:#[INFO ] 2018-11-29 09:57:38.009 [MAIN] ZobristHash - Created new ZobristHash
2018-11-29 09:57:38,540<--1:#[DEBUG] 2018-11-29 09:57:38.009 [MAIN] Board - Assertions are disabled.
2018-11-29 09:57:38,571<--1:#[INFO ] 2018-11-29 09:57:38.009 [MAIN] SimpleBookImpl - book 'frankwalter.openings' does not exist.
2018-11-29 09:57:38,603<--1:#[INFO ] 2018-11-29 09:57:38.009 [MAIN] SimpleBookImpl - book 'frankwalter.openings' is not a file.
2018-11-29 09:57:38,634<--1:#[INFO ] 2018-11-29 09:57:38.087 [MAIN] SimpleBookImpl - openingbook frankwalter.openings read.
2018-11-29 09:57:38,665<--1:#[INFO ] 2018-11-29 09:57:38.087 [MAIN] SimpleBookImpl - entries: 1536.
2018-11-29 09:57:38,696<--1:#[INFO ] 2018-11-29 09:57:38.087 [MAIN] SimpleBookImpl - duplicates: 0.
2018-11-29 09:57:38,696<--1:#[DEBUG] 2018-11-29 09:57:38.087 [MAIN] Game - State change: init -> pause
2018-11-29 09:57:38,728<--1:feature done=1
2018-11-29 09:57:38,728-->1:accepted done
2018-11-29 09:57:38,728*1*Child Process Prio Adj: PID 6832 conhost.exe
2018-11-29 09:57:38,728<--1:#[DEBUG] 2018-11-29 09:57:38.134 [inputReader] InputReader - UserInput = 'accepted done'
2018-11-29 09:57:38,728<--1:#[DEBUG] 2018-11-29 09:57:38.228 [inputReader] InputReader - UserInput = 'accepted egt'
2018-11-29 09:57:38,728<--1:#[DEBUG] 2018-11-29 09:57:38.259 [inputReader] InputReader - UserInput = 'accepted setboard'
2018-11-29 09:57:38,728-->1:egtpath syzygy
2018-11-29 09:57:38,728-->1:new
2018-11-29 09:57:38,728-->1:random
2018-11-29 09:57:38,728-->1:level 40 2 0
2018-11-29 09:57:38,728<--1:#[DEBUG] 2018-11-29 09:57:38.290 [inputReader] InputReader - UserInput = 'accepted playother'
2018-11-29 09:57:38,728-->1:post
2018-11-29 09:57:38,728-->1:hard
2018-11-29 09:57:38,728-->1:easy
2018-11-29 09:57:38,759<--1:#[DEBUG] 2018-11-29 09:57:38.321 [inputReader] InputReader - UserInput = 'accepted usermove'
2018-11-29 09:57:38,759<--1:#[DEBUG] 2018-11-29 09:57:38.353 [inputReader] InputReader - UserInput = 'accepted debug'
2018-11-29 09:57:38,759<--1:#[DEBUG] 2018-11-29 09:57:38.384 [inputReader] InputReader - UserInput = 'accepted colors'
2018-11-29 09:57:38,759<--1:#[DEBUG] 2018-11-29 09:57:38.415 [inputReader] InputReader - UserInput = 'accepted analyze'
2018-11-29 09:57:38,759<--1:#[DEBUG] 2018-11-29 09:57:38.415 [inputReader] InputReader - UserInput = 'accepted sigint'
2018-11-29 09:57:38,759<--1:#[DEBUG] 2018-11-29 09:57:38.415 [inputReader] InputReader - UserInput = 'accepted variants'
2018-11-29 09:57:38,759<--1:#[DEBUG] 2018-11-29 09:57:38.728 [inputReader] InputReader - UserInput = 'accepted done'
2018-11-29 09:57:38,759<--1:#[DEBUG] 2018-11-29 09:57:38.728 [inputReader] InputReader - UserInput = 'egtpath syzygy '
2018-11-29 09:57:38,759<--1:Exception in thread "inputReader" java.lang.ArrayIndexOutOfBoundsException: 2
2018-11-29 09:57:38,759<--1: at com.winkelhagen.chess.frankwalter.ci.InputReader.processUserInput(InputReader.java:103)
2018-11-29 09:57:38,759<--1: at com.winkelhagen.chess.frankwalter.ci.InputReader.run(InputReader.java:59)
2018-11-29 09:57:38,759<--1: at java.lang.Thread.run(Unknown Source)
2018-11-29 09:57:54,864**----------New game---2018-11-29 09:57:54,864 Cs -------------
2018-11-29 09:57:54,864-->1:level 40 2 0
2018-11-29 09:57:54,864-->1:egtpath syzygy
2018-11-29 09:57:54,864-->1:new
2018-11-29 09:57:54,864-->1:random
2018-11-29 09:57:54,864-->1:level 40 2 0
2018-11-29 09:57:54,864-->1:post
2018-11-29 09:57:54,864-->1:hard
2018-11-29 09:57:54,864-->1:easy
2018-11-29 09:57:54,864**Loading book: E:\Sakk\Arena2\Books\SideLines.abk
2018-11-29 09:58:01,254*1*Start calc, move no: 1
2018-11-29 09:58:01,254*1*Main Book Move SideLines.abk: e7e6
2018-11-29 09:58:03,864*1*Start calc, move no: 3
2018-11-29 09:58:03,864*1*Main Book Move SideLines.abk: d7d5
2018-11-29 09:58:07,217*1*Start calc, move no: 5
2018-11-29 09:58:07,279-->1:level 40 2 0
2018-11-29 09:58:07,279-->1:egtpath syzygy
2018-11-29 09:58:07,279-->1:new
2018-11-29 09:58:07,279-->1:random
2018-11-29 09:58:07,279-->1:level 40 2 0
2018-11-29 09:58:07,279-->1:post
2018-11-29 09:58:07,279-->1:hard
2018-11-29 09:58:07,279-->1:easy
2018-11-29 09:58:07,279-->1:force
2018-11-29 09:58:07,498-->1:usermove e2e4
2018-11-29 09:58:07,498-->1:usermove e7e6
2018-11-29 09:58:07,498-->1:usermove d2d4
2018-11-29 09:58:07,498-->1:usermove d7d5
2018-11-29 09:58:07,498-->1:usermove e4d5
2018-11-29 09:58:07,514-->1:time 12000
2018-11-29 09:58:07,514-->1:otim 11497
2018-11-29 09:58:07,514-->1:go
2018-11-29 10:00:09,414-->1:?
Gabor Szots
CCRL testing group
User avatar
AdminX
Posts: 6344
Joined: Mon Mar 13, 2006 2:34 pm
Location: Acworth, GA

Re: Frank Walter

Post by AdminX »

Gabor Szots wrote: Thu Nov 29, 2018 9:04 am Strange. All java engines work all right for me expect FrankWalter. Still does not move. BTW, I thought it was a WinBoard engine, not UCI.
I am using the WB2UCI adapter. Here is my wb2uci.eng config:

Code: Select all

[ENGINE]
Name=Frank-Walter 2.2.2
Author=Laurens Winkelhagen
Filename=Wb2Uci.exe

[OPTIONS]
Program=java -jar -Xms150m -Xmx1024m frankwalter.jar -tt 24 -tb E:\SyzygyBases\DTZ_6;E:\SyzygyBases\DTZ_345;E:\SyzygyBases\WDL_6;E:\SyzygyBases\WDL_345
"Good decisions come from experience, and experience comes from bad decisions."
__________________________________________________________________
Ted Summers
ljgw
Posts: 68
Joined: Fri Nov 16, 2018 10:23 am
Full name: Laurens Winkelhagen

Re: Frank Walter

Post by ljgw »

Gabor Szots wrote: Thu Nov 29, 2018 10:01 am Laurens, here is what I get from Arena upon pressing F4.
2018-11-29 09:57:38,759<--1:#[DEBUG] 2018-11-29 09:57:38.728 [inputReader] InputReader - UserInput = 'accepted done'
2018-11-29 09:57:38,759<--1:#[DEBUG] 2018-11-29 09:57:38.728 [inputReader] InputReader - UserInput = 'egtpath syzygy '
2018-11-29 09:57:38,759<--1:Exception in thread "inputReader" java.lang.ArrayIndexOutOfBoundsException: 2
2018-11-29 09:57:38,759<--1: at com.winkelhagen.chess.frankwalter.ci.InputReader.processUserInput(InputReader.java:103)
2018-11-29 09:57:38,759<--1: at com.winkelhagen.chess.frankwalter.ci.InputReader.run(InputReader.java:59)
2018-11-29 09:57:38,759<--1: at java.lang.Thread.run(Unknown Source)
Hi Gabor,

It is clear for me what the problem is from the logging: I did not make my program robust enough to guard against unexpected input. FrankWalter expects either a location for the Syzygy tablebases, or no 'egtpath syzygy' command at all.

It fails because it thinks it if fed the Syzygy tablebases location, but the location is the empty string.

I will write some input sanitation code to prevent this issue in the future, and meanwhile I would be much obliged if you could test FrankWalter with Arena with the Syzygy tablebases location (for FrankWalter) configured in Arena.

I really what to thank you all for testing FrankWalter so that I can improve my engine and it's 'user experience'.

--Laurens
Author of JanWillem (C, WB, inactive) and FrankWalter (Java, WB, https://github.com/ljgw/frankwalter)
Gabor Szots
Posts: 1365
Joined: Sat Jul 21, 2018 7:43 am
Location: Szentendre, Hungary
Full name: Gabor Szots

Re: Frank Walter

Post by Gabor Szots »

AdminX wrote: Thu Nov 29, 2018 11:08 am
Gabor Szots wrote: Thu Nov 29, 2018 9:04 am Strange. All java engines work all right for me expect FrankWalter. Still does not move. BTW, I thought it was a WinBoard engine, not UCI.
I am using the WB2UCI adapter. Here is my wb2uci.eng config:

Code: Select all

[ENGINE]
Name=Frank-Walter 2.2.2
Author=Laurens Winkelhagen
Filename=Wb2Uci.exe

[OPTIONS]
Program=java -jar -Xms150m -Xmx1024m frankwalter.jar -tt 24 -tb E:\SyzygyBases\DTZ_6;E:\SyzygyBases\DTZ_345;E:\SyzygyBases\WDL_6;E:\SyzygyBases\WDL_345
I see. I have abandoned all adapters recently.
Gabor Szots
CCRL testing group
Gabor Szots
Posts: 1365
Joined: Sat Jul 21, 2018 7:43 am
Location: Szentendre, Hungary
Full name: Gabor Szots

Re: Frank Walter

Post by Gabor Szots »

ljgw wrote: Thu Nov 29, 2018 11:27 am Hi Gabor,

It is clear for me what the problem is from the logging: I did not make my program robust enough to guard against unexpected input. FrankWalter expects either a location for the Syzygy tablebases, or no 'egtpath syzygy' command at all.

It fails because it thinks it if fed the Syzygy tablebases location, but the location is the empty string.

I will write some input sanitation code to prevent this issue in the future, and meanwhile I would be much obliged if you could test FrankWalter with Arena with the Syzygy tablebases location (for FrankWalter) configured in Arena.

I really what to thank you all for testing FrankWalter so that I can improve my engine and it's 'user experience'.

--Laurens
Even if I add -tb F:\Sakk\syzygy to the command line it does not move. That is, it moves (very slowly, as if restartig after each move) until it leaves book. After that it does not move at all.
Gabor Szots
CCRL testing group