Java executable (.jar-file) of OPA Chess

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

Moderators: hgm, Rebel, chrisw

Norbert Raimund Leisner
Posts: 1643
Joined: Tue May 20, 2008 4:57 pm
Location: Augsburg - Germany

Java executable (.jar-file) of OPA Chess

Post by Norbert Raimund Leisner »

Hello,

it seems that https://devpost.com/software/opa-chess-engine-arvwpn
contains a jar-file, but no moves are executed under Arena 3.5.1 GUI


2017-07-19 06:05:39,630 Arena 3.5.1
2017-07-19 06:05:39,645Font Arena Chess Figurine MISSING

2017-07-19 06:05:39,723**----------Neue Partie---2017-07-19 06:05:39,723 Mi -------------
2017-07-19 06:05:39,879**----------Neue Partie---2017-07-19 06:05:39,879 Mi -------------
2017-07-19 06:05:39,942**screen: 1280x1024
2017-07-19 06:05:39,942**Monitors: 1
2017-07-19 06:05:39,942**Monitor0: 1280x1024
2017-07-19 06:05:39,942**FormMonitor: 0
2017-07-19 06:05:39,942**DesktopRect: 0/0 .. 1280/1024
2017-07-19 06:05:56,681*1*---------------------------Starte Motor 1 Engine----------------------------
2017-07-19 06:05:56,696*1*Configured Engine 1 Type: UCI
2017-07-19 06:05:56,696*1*Engine 1 dir: C:\Users\NRL\Downloads\OPA-Chess-Engine-master\OPA-Chess-Engine-master\main
2017-07-19 06:05:56,696*1*Engine 1 commandline: java -jar C:\Users\NRL\Downloads\OPA-Chess-Engine-master\OPA-Chess-Engine-master\main\engine.jar
2017-07-19 06:05:56,808*1*Engine 1 ProcessID: 2056
2017-07-19 06:05:56,808*1*Engine 1 Prio:32 ThreadPrio:0
2017-07-19 06:05:56,840<--1:kein Hauptmanifestattribut, in C:\Users\NRL\Downloads\OPA-Chess-Engine-master\OPA-Chess-Engine-master\main\engine.jar
2017-07-19 06:05:56,840-->1:uci
2017-07-19 06:06:04,842-->1:isready
2017-07-19 06:07:18,786****Tour**======== Turnier 1 ========
2017-07-19 06:07:18,974****Tour**
2017-07-19 06:07:18,974****Tour**Paarung 1/1: Engine - Hermann 2.8 32 bit
2017-07-19 06:07:18,989*2*---------------------Starte Motor 2 Hermann 2.8 32 bit----------------------
2017-07-19 06:07:18,989*2*Configured Engine 2 Type: UCI
2017-07-19 06:07:18,989*2*Engine 2 dir: C:\Users\NRL\Downloads\arena_3.5.1\Engines\Hermann
2017-07-19 06:07:18,989*2*Engine 2 commandline: C:\Users\NRL\Downloads\arena_3.5.1\Engines\Hermann\Hermann28_32.exe
2017-07-19 06:07:19,114*2*Engine 2 ProcessID: 3464
2017-07-19 06:07:19,114*2*Engine 2 Prio:32 ThreadPrio:0
2017-07-19 06:07:19,145-->2:uci
2017-07-19 06:07:19,145<--2:id name Hermann 2.8
2017-07-19 06:07:19,145<--2:id author Volker Annuss
2017-07-19 06:07:19,145<--2:option name Hash type spin default 3 min 1 max 2047
2017-07-19 06:07:19,145<--2:option name Ponder type check default true
2017-07-19 06:07:19,145<--2:option name OwnBook type check default true
2017-07-19 06:07:19,145<--2:option name Clear Hash type button
2017-07-19 06:07:19,145<--2:option name MultiPV type spin default 1 min 1 max 255
2017-07-19 06:07:19,145<--2:option name UCI_Chess960 type check default false
2017-07-19 06:07:19,145<--2:option name BookFile type string default Hermann.opn
2017-07-19 06:07:19,145<--2:option name Opponent type string default unknown
2017-07-19 06:07:19,145<--2:option name NumberOfProcessors type spin default 1 min 1 max 8
2017-07-19 06:07:19,145<--2:option name NeuroMaterial type spin default 40 min 0 max 100
2017-07-19 06:07:19,145<--2:option name NeuroWidth type spin default 800 min 1 max 10000
2017-07-19 06:07:19,145<--2:option name MaterialFile type string default (internal)
2017-07-19 06:07:19,145<--2:option name TimeLogfile type string default nul:
2017-07-19 06:07:19,145<--2:uciok
2017-07-19 06:07:19,145-->2:setoption name Hash value 128
2017-07-19 06:07:19,145-->2:setoption name Ponder value true
2017-07-19 06:07:19,145-->2:setoption name OwnBook value true
2017-07-19 06:07:19,145-->2:setoption name MultiPV value 1
2017-07-19 06:07:19,145-->2:setoption name UCI_Chess960 value false
2017-07-19 06:07:19,145-->2:setoption name BookFile value Hermann.opn
2017-07-19 06:07:19,145-->2:setoption name Opponent value unknown
2017-07-19 06:07:19,145-->2:setoption name NumberOfProcessors value 1
2017-07-19 06:07:19,145-->2:setoption name NeuroMaterial value 40
2017-07-19 06:07:19,145-->2:setoption name NeuroWidth value 800
2017-07-19 06:07:19,145-->2:setoption name MaterialFile value (internal)
2017-07-19 06:07:19,145-->2:setoption name TimeLogfile value nul:
2017-07-19 06:07:19,145-->2:isready
2017-07-19 06:07:19,301<--2:readyok
2017-07-19 06:07:19,660-->2:setoption name Ponder value false
2017-07-19 06:07:19,660****Tour**Runde 1 von 2: Engine - Hermann 2.8 32 bit
2017-07-19 06:07:19,676**----------Neue Partie---2017-07-19 06:07:19,676 Mi -------------
2017-07-19 06:07:19,707*1*Unzulässige Funktion
2017-07-19 06:07:19,707*1*Engine crashed, restarting...
2017-07-19 06:07:19,707-->1:quit
2017-07-19 06:07:20,081*1*---------------------------Starte Motor 1 Engine----------------------------
2017-07-19 06:07:20,081*1*Configured Engine 1 Type: UCI
2017-07-19 06:07:20,081*1*Engine 1 dir: C:\Users\NRL\Downloads\OPA-Chess-Engine-master\OPA-Chess-Engine-master\main
2017-07-19 06:07:20,081*1*Engine 1 commandline: java -jar C:\Users\NRL\Downloads\OPA-Chess-Engine-master\OPA-Chess-Engine-master\main\engine.jar
2017-07-19 06:07:20,193*1*Engine 1 ProcessID: 4000
2017-07-19 06:07:20,193*1*Engine 1 Prio:32 ThreadPrio:0
2017-07-19 06:07:20,193<--1:kein Hauptmanifestattribut, in C:\Users\NRL\Downloads\OPA-Chess-Engine-master\OPA-Chess-Engine-master\main\engine.jar
2017-07-19 06:07:20,225-->1:uci
2017-07-19 06:07:28,228-->1:isready
2017-07-19 06:07:29,554*1*Start calc, move no: 0
2017-07-19 06:07:29,554-->1:ucinewgame
2017-07-19 06:07:29,554-->1:isready
2017-07-19 06:07:29,663-->1:position startpos
2017-07-19 06:07:29,663-->1:go wtime 300000 btime 300000 winc 0 binc 0
2017-07-19 06:12:30,731-->1:stop
2017-07-19 06:12:32,026****Tour**Partie zuende: 0-1 {0-1 Weiss überschreitet die Zeit}
2017-07-19 06:12:32,026****Tour**Letzte Partie gewann Hermann 2.8 32 bit mit Schwarz in 1 Zügen
2017-07-19 06:12:32,026****Tour**Engine - Hermann 2.8 32 bit:
2017-07-19 06:12:32,041****Tour** 1 S 2 1,0:0,0 0,0:1,0 06:12:32 0.00 1 0:0 0-1-0
2017-07-19 06:12:32,073****Tour**Speichere Datei C:\Users\NRL\Downloads\arena_3.5.1\Arena.pgn Runde:1 2017.07.19 06:07:19
2017-07-19 06:12:32,073****Tour**stopping engine calculation after game...
2017-07-19 06:12:32,073-->1:stop
2017-07-19 06:12:33,289-->1:stop
2017-07-19 06:12:33,321-->2:setoption name Ponder value false
2017-07-19 06:12:33,321****Tour**Runde 2 von 2: Hermann 2.8 32 bit - Engine
2017-07-19 06:12:33,336**----------Neue Partie---2017-07-19 06:12:33,336 Mi -------------
2017-07-19 06:12:33,383*2*Start calc, move no: 0
2017-07-19 06:12:33,383-->2:ucinewgame
2017-07-19 06:12:33,383-->2:isready
2017-07-19 06:12:33,492-->2:position startpos
2017-07-19 06:12:33,492-->2:go wtime 300000 btime 300000 winc 0 binc 0
2017-07-19 06:12:33,991<--2:readyok
2017-07-19 06:12:34,600<--2:bestmove g1f3 ponder d7d5
2017-07-19 06:12:34,600*2*Zug gefunden:Sg1-f3
2017-07-19 06:12:34,771*1*
2017-07-19 06:12:34,771*1*
2017-07-19 06:12:34,771*1*Engine already calculating!
2017-07-19 06:12:34,787*1*
2017-07-19 06:12:34,787*1*
2017-07-19 06:17:37,170****Tour**Partie zuende: 1-0 {1-0 Schwarz überschreitet die Zeit}
2017-07-19 06:17:37,170****Tour**Letzte Partie gewann Hermann 2.8 32 bit mit Weiss in 1 Zügen
2017-07-19 06:17:37,170****Tour**Engine - Hermann 2.8 32 bit:
2017-07-19 06:17:37,170****Tour** 2 W 2 2,0:0,0 0,0:2,0 06:17:37 0.00 1 0:0 0-2-0
2017-07-19 06:17:37,202****Tour**Speichere Datei C:\Users\NRL\Downloads\arena_3.5.1\Arena.pgn Runde:2 2017.07.19 06:12:33
2017-07-19 06:17:37,217****Tour**stopping engine calculation after game...
2017-07-19 06:17:37,217-->1:stop
2017-07-19 06:17:38,559****Tour**Turnier beendet
error indication: no main manifest attribute

cf. https://stackoverflow.com/questions/968 ... -attribute

Java 8 update 141 is installed on my computer. Who of you made the same experiences with OPA Chess release?

https://github.com/alyanwarr/OPA-Chess-Engine/

Windows 7 SP1 32-bit = operation system

Best wishes,
Norbert
User avatar
Guenther
Posts: 4611
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: Java executable (.jar-file) of OPA Chess

Post by Guenther »

Norbert Raimund Leisner wrote:Hello,

it seems that https://devpost.com/software/opa-chess-engine-arvwpn
contains a jar-file, but no moves are executed under Arena 3.5.1 GUI


2017-07-19 06:05:39,630 Arena 3.5.1
2017-07-19 06:05:39,645Font Arena Chess Figurine MISSING

2017-07-19 06:05:39,723**----------Neue Partie---2017-07-19 06:05:39,723 Mi -------------
2017-07-19 06:05:39,879**----------Neue Partie---2017-07-19 06:05:39,879 Mi -------------
2017-07-19 06:05:39,942**screen: 1280x1024
2017-07-19 06:05:39,942**Monitors: 1
2017-07-19 06:05:39,942**Monitor0: 1280x1024
2017-07-19 06:05:39,942**FormMonitor: 0
2017-07-19 06:05:39,942**DesktopRect: 0/0 .. 1280/1024
2017-07-19 06:05:56,681*1*---------------------------Starte Motor 1 Engine----------------------------
2017-07-19 06:05:56,696*1*Configured Engine 1 Type: UCI
2017-07-19 06:05:56,696*1*Engine 1 dir: C:\Users\NRL\Downloads\OPA-Chess-Engine-master\OPA-Chess-Engine-master\main
2017-07-19 06:05:56,696*1*Engine 1 commandline: java -jar C:\Users\NRL\Downloads\OPA-Chess-Engine-master\OPA-Chess-Engine-master\main\engine.jar
2017-07-19 06:05:56,808*1*Engine 1 ProcessID: 2056
2017-07-19 06:05:56,808*1*Engine 1 Prio:32 ThreadPrio:0
2017-07-19 06:05:56,840<--1:kein Hauptmanifestattribut, in C:\Users\NRL\Downloads\OPA-Chess-Engine-master\OPA-Chess-Engine-master\main\engine.jar
This means it is not compiled properly! (I get the same error BTW)
'kein Hauptmanifestattribut' = no main manifest attribute

http://docs.oracle.com/javase/tutorial/ ... index.html

Guenther
https://rwbc-chess.de

trollwatch:
Talkchess nowadays is a joke - it is full of trolls/idiots/people stuck in the pleistocene > 80% of the posts fall into this category...
tmokonen
Posts: 1296
Joined: Sun Mar 12, 2006 6:46 pm
Location: Kelowna
Full name: Tony Mokonen

Re: Java executable (.jar-file) of OPA Chess

Post by tmokonen »

You don't need the jar file. Create a batch file in the folder one directory above the main folder, with the contents of the batch file being

java main.OPAChess

and it should work.

OPAChess doesn't seem to use time controls as of yet.
User avatar
Guenther
Posts: 4611
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: Java executable (.jar-file) of OPA Chess

Post by Guenther »

tmokonen wrote:You don't need the jar file. Create a batch file in the folder one directory above the main folder, with the contents of the batch file being

java main.OPAChess

and it should work.

OPAChess doesn't seem to use time controls as of yet.
You are right. I could play some moves aginst it until it made a move
for my side ;-) I guess it is not yet ready to use?

Code: Select all

0.000&#58; - Starting server&#58; java main.OPAChess
0.094&#58; - Priority class set to normal
0.094&#58; - Thread priority set to normal
0.998&#58; < ============================
0.998&#58; < |   Welcome to OPA Chess   |
0.998&#58; < ============================
0.998&#58; < | Options&#58;                 |
0.998&#58; < |        > UCI             |
0.998&#58; < |        > Console         |
0.998&#58; < |        > Exit            |
0.998&#58; < ============================
6.568&#58; > uci
6.568&#58; < > id name OPA-Chess AlphaBeta v0.01
6.568&#58; < id Author OPA
6.568&#58; < uciok
9.469&#58; - Control signal CLOSE
0.000&#58; - Starting server&#58; java main.OPAChess
0.015&#58; - Priority class set to 16384
0.015&#58; - Thread priority set to normal
0.234&#58; < ============================
0.234&#58; < |   Welcome to OPA Chess   |
0.234&#58; < ============================
0.234&#58; < | Options&#58;                 |
0.234&#58; < |        > UCI             |
0.234&#58; < |        > Console         |
0.234&#58; < |        > Exit            |
0.234&#58; < ============================
0.374&#58; > uci
0.390&#58; < > id name OPA-Chess AlphaBeta v0.01
0.390&#58; < id Author OPA
0.390&#58; < uciok
0.421&#58; > isready
0.421&#58; < readyok
0.421&#58; > ucinewgame
0.421&#58; < Not supported yet.
7.160&#58; > position startpos moves e2e4
7.160&#58; > go btime 300000 wtime 300000 movestogo 40
14.055&#58; < bestmove b8c6
16.973&#58; > position startpos moves e2e4 b8c6 b1c3
16.973&#58; > go btime 293100 wtime 297090 movestogo 39
19.640&#58; < bestmove g8f6
23.088&#58; > position startpos moves e2e4 b8c6 b1c3 g8f6 g1f3
23.088&#58; > go btime 290430 wtime 293640 movestogo 38
24.679&#58; < bestmove f6e4
26.504&#58; > position startpos moves e2e4 b8c6 b1c3 g8f6 g1f3 f6e4 c3e4
26.504&#58; > go btime 288830 wtime 291820 movestogo 37
55.692&#58; < bestmove d7d6
57.923&#58; > position startpos moves e2e4 b8c6 b1c3 g8f6 g1f3 f6e4 c3e4 d7d6 d2d4
57.923&#58; > go btime 259640 wtime 289600 movestogo 36
86.924&#58; < bestmove a7a6
95.878&#58; > position startpos moves e2e4 b8c6 b1c3 g8f6 g1f3 f6e4 c3e4 d7d6 d2d4 a7a6 f1d3
95.878&#58; > go btime 230630 wtime 280650 movestogo 35
124.894&#58; < bestmove a6a5
136.859&#58; > position startpos moves e2e4 b8c6 b1c3 g8f6 g1f3 f6e4 c3e4 d7d6 d2d4 a7a6 f1d3 a6a5 e1g1
136.859&#58; > go btime 201620 wtime 268680 movestogo 34
138.497&#58; < bestmove a2a3
194.205&#58; > quit
194.315&#58; - Server closed
194.315&#58; - Stopping server communication
194.408&#58; - Closing log

Code: Select all

&#91;Event "RWBC"&#93;
&#91;Site "CAPPUCCINO"&#93;
&#91;Date "2017.07.20"&#93;
&#91;Round "-"&#93;
&#91;White "Guenther Simon"&#93;
&#91;Black "OpaChess_01"&#93;
&#91;Result "*"&#93;
&#91;TimeControl "40/300"&#93;

1. e4 Nc6 2. Nc3 Nf6 3. Nf3 Nxe4 4. Nxe4 d6 5. d4 a6 6. Bd3 a5 7. O-O
&#123;xboard exit &#40;Clocks&#58; 268, 144&#41;&#125; *
Guenther
https://rwbc-chess.de

trollwatch:
Talkchess nowadays is a joke - it is full of trolls/idiots/people stuck in the pleistocene > 80% of the posts fall into this category...