ChessGUI (current version) and JavaScript engines part I

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

Moderators: hgm, Harvey Williamson, bob

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
Norbert Raimund Leisner
Posts: 1445
Joined: Tue May 20, 2008 2:57 pm
Location: Augsburg - Germany

ChessGUI (current version) and JavaScript engines part I

Post by Norbert Raimund Leisner » Wed Aug 23, 2017 6:57 am

Hello,

ChessGUI http://www.chess.hylogic.de/ has obviously problems with JavaScript Universal Chess Interface + P4wn Chess https://sourceforge.net/projects/jsuci/ - UCI1

exe-file: JSUCI12.exe
commandline-parameters: p4wn_loader.js



Debug

id name p4wn, AKA 5k chess
id author Douglas Bagnall, ported to JSUCI by Edmund Moshammer
uciok
readyok
engine.js:31380: Uncaught TypeError: Cannot read property 'board' of undefined
p4wn_loader.js:644: Uncaught TypeError: Cannot read property 'findmove' of undefined


Point 4 in NextGame().
Point 7 in NextGame().
================ C ================
... busy ... ... please, wait ...
Now in GetRoundRobinPairing() at Time0000000006467099


Game Nr. 1 (RomiChessP3m64 <==*==> jsuci_1_2) in Tournament ""
RomiChessP3m64
jsuci_1_2
Pairings_Openings: nGameNr = 1 of 4, nOpening = 1, Round = 1.1 at Time0000000006467115

Now in GetInitialFen() at Time0000000006467115

Now in Chess960_ID_To_Fen(nID=518) at Time0000000006467115

nMainPrefs in GetInitialFen() = 25, nInitialFenNr = 518, nPgnEpdNr = 0, nCurrRound = 1, nCurrRndGame = 1
Cycle = 1
Now in DisplayGameSchedule() at Time0000000006467115

Now in DisplayRoundRobinTable() at Time0000000006467115

Got a RoundRobin pairing !
... now you can relax ...
Now in GetInitialFen() at Time0000000006467115

Now in Chess960_ID_To_Fen(nID=518) at Time0000000006467115

nMainPrefs in GetInitialFen() = 25, nInitialFenNr = 518, nPgnEpdNr = 0, nCurrRound = 1, nCurrRndGame = 1
================ EngineAgainstEngine(0000000006467161) =======================================
==== LaunchChessEngine(RomiChessP3m64) ====
Processor is Intel.
Computer Speed = 3 MHz.
Total Physical Memory = 3794 MB.
Total Available Memory = 1664 MB.
Total Available Disk Space = 69831 MB.
=======================================================
Now in EraseInputBuffers(RomiChessP3m64).
Now in MakeTimeControlString() at Time0000000006467567

GetPrivateProfileString() no value for CommandLine in RomiChessP3m64 (C:\Users\NRL\Downloads\ChessGUI_net.1\ChessGUI_net\GUI_DATA\ChsGUI_Eng.TXT), nResult = 0, OutStr =
LaunchChessEngine(RomiChessP3m64) EngineCode = 562949953421440
LaunchChessEngine() succeeded for RomiChessP3m64
RomiChessP3m64 is playing white.
==== LaunchChessEngine(jsuci_1_2) ====
Processor is Intel.
Computer Speed = 3 MHz.
Total Physical Memory = 3794 MB.
Total Available Memory = 1663 MB.
Total Available Disk Space = 69831 MB.
=======================================================
Now in EraseInputBuffers(jsuci_1_2).
Now in MakeTimeControlString() at Time0000000006468004

LaunchChessEngine(jsuci_1_2) EngineCode = 571746046443536
LaunchChessEngine() succeeded for jsuci_1_2
jsuci_1_2 is playing black.
==============================================================================
EngineAgainstEngine() succeeded for RomiChessP3m64
EngineAgainstEngine() succeeded for jsuci_1_2
Now in MakeTimeControlString() at Time0000000006468035

================ SendFirstCommands(jsuci_1_2), nProtocol = 1, EngineCodeHex = 00000010 ====
SendFirstCommands UCI
SendToEng2Time 0000000006468035 : Eng02 (jsuci_1_2) -> uci
.
Scheduling StartEngineTimerEvent() for jsuci_1_2 at 0000000006468035.
Waiting for jsuci_1_2.
Eng02 (jsuci_1_2) <- id name p4wn, AKA 5k chess
nChessVariant(1) = 1, id name.
Cancelling StartEngineTimerEvent() for jsuci_1_2 at 0000000006468051.
Eng02 (jsuci_1_2) <- id author Douglas Bagnall, ported to JSUCI by Edmund Moshammer
Eng02 (jsuci_1_2) <- uciok
nChessVariant(1) = 1, uciok.
SendToEng2Time 0000000006468066 : Eng02 (jsuci_1_2) -> isready
.
Scheduling StartEngineTimerEvent() for jsuci_1_2 at 0000000006468066.
Waiting for jsuci_1_2.
Eng02 (jsuci_1_2) <- readyok
nChessVariant(1) = 1, readyok.
Cancelling StartEngineTimerEvent() for jsuci_1_2 at 0000000006468082.
nChessVariant(1) = 1.
================ SendFirstCommands(RomiChessP3m64), nProtocol = 2, EngineCodeHex = 00000080 ====
SendToEng1Time 0000000006468082 : Eng01 (RomiChessP3m64) -> xboard
.
SendFirstCommands WB2
SendToEng1Time 0000000006468097 : Eng01 (RomiChessP3m64) -> protover 2
.
Scheduling StartEngineTimerEvent() for RomiChessP3m64 at 0000000006468097.
Waiting for RomiChessP3m64.
Eng01 (RomiChessP3m64) <- This is RomiChess by Michael J Sherwin
Eng01 (RomiChessP3m64) <- Version P3m 64 bit -- 19/Aug/2017
Eng01 (RomiChessP3m64) <- Copyright 2005 Michael J Sherwin
Eng01 (RomiChessP3m64) <- feature analyze=1
SendToEng1Time 0000000006468113 : Eng01 (RomiChessP3m64) -> accepted analyze
.
Eng01 (RomiChessP3m64) <- feature setboard=1
SendToEng1Time 0000000006468113 : Eng01 (RomiChessP3m64) -> accepted setboard
.
Eng01 (RomiChessP3m64) <- feature done=1
Cancelling StartEngineTimerEvent() for RomiChessP3m64 at 0000000006468113.
SendToEng1Time 0000000006468129 : Eng01 (RomiChessP3m64) -> accepted done
.
Now in StartGame() at Time0000000006468129

Now in GUI_StabilityCheck() at Time0000000006468129
ChessGUI 0.245 has been running for 0 days 00 hrs 02 mins 38 secs
Longest run of ChessGUI 0.245 so far was 0 days 00 hrs 02 mins 38 secs
Longest ChessGUI run ever was 0 days 00 hrs 02 mins 38 secs (ChessGUI 0.245)
LaunchChessEngine() succeeded for TimeLagEngine
SendToEng9Time 0000000006468129 : Eng09 (TimeLagEngine) -> uci
isready
.
nMainPrefs=0, nPrefs=126976, nExclusions=131072, nExtraPrefs=0, nCodeEng1=562949953421440, nCodeEng2=571746046443536

GetPrivateProfileString() no value for GUI_Colors in Preferences (C:\Users\NRL\Downloads\ChessGUI_net.1\ChessGUI_net\GUI_DATA\ChsGUI_Ini.INI), nResult = 0, OutStr =
GUI_BoardColors1=13033702 12093031 16777215 16777215 13033702 4825161 15395562 16777215
TimeControl: 40/120:40/120:40/120
Timing: TimeControl: 40/120:40/120:40/120
========================== StartGame(Total Available Memory = 1616 MB) ==========================.
Now in MakeTimeControlString() at Time0000000006468129

Now in MakeTimeControlString() at Time0000000006468129

Now in StartGame() for RomiChessP3m64
SendToEng1Time 0000000006468129 : Eng01 (RomiChessP3m64) -> new
.
nChessVariant(0) = 1.
Now in SendTimeControlString() at Time0000000006468144

SideToMove=w, nInterval = 1, nmoves = 0, imoves = 0, movestogo = 40, wtime = 120000, btime = 120000, winc = 0, binc = 0, PlyPtr = 0, TimeLeft = 120000 ms
SendToEng1Time 0000000006468144 : Eng01 (RomiChessP3m64) -> level 40 2 0
.
SendToEng1Time 0000000006468144 : Eng01 (RomiChessP3m64) -> post
hard
.
SendToEng1Time 0000000006468144 : Eng01 (RomiChessP3m64) -> easy
.
SendToEng1Time 0000000006468144 : Eng01 (RomiChessP3m64) -> force
.
SendToEng1Time 0000000006468144 : Eng01 (RomiChessP3m64) -> computer
.
Now in StartGame() for jsuci_1_2
====================== Beginning of Book moves ========================
Now in SendBookMoves() at Time0000000006468144

GetPrivateProfileString() no value for PgnOpening00000001 in (C:\Users\NRL\Downloads\ChessGUI_net.1\ChessGUI_net\TOURNAMENTS\.e1e), nResult = 0, OutStr =
GetPrivateProfileString() no value for BookLine00000001 in (C:\Users\NRL\Downloads\ChessGUI_net.1\ChessGUI_net\TOURNAMENTS\.e1e), nResult = 0, OutStr =
Pgn Opening PgnOpening00000001 not found.
Book Line BookLine00000001 not found.
====================== End of Book moves ========================
SideToMove=w, nInterval = 1, nmoves = 0, imoves = 0, movestogo = 40, wtime = 120000, btime = 120000, winc = 0, binc = 0, PlyPtr = 0, TimeLeft = 120000 ms
SendToEng1Time 0000000006468144 : Eng01 (RomiChessP3m64) -> black
.
SendToEng1Time 0000000006468144 : Eng01 (RomiChessP3m64) -> time 12000
.
SendToEng1Time 0000000006468144 : Eng01 (RomiChessP3m64) -> otim 12000
.
SendToEng1Time 0000000006468144 : Eng01 (RomiChessP3m64) -> white
.
SendToEng1Time 0000000006468160 : Eng01 (RomiChessP3m64) -> go
.
Scheduling GameMoveTimerEvent() for RomiChessP3m64 at 0000000006468160.
============================================ Tactics and Strategies from here on ================================================
Time Overstep Margin = 0 ms
Brain work may now start. Good Luck !
==========================================================================================
Eng01 (RomiChessP3m64) <- Pipe01Time 0000000006468191
Exact move time for RomiChessP3m64
Eng01 (RomiChessP3m64) <- Error (unknown command): accepted
Eng01 (RomiChessP3m64) <- Error (unknown command): accepted
Eng01 (RomiChessP3m64) <- Error (unknown command): accepted
Eng01 (RomiChessP3m64) <- Error (unknown command): post
Eng01 (RomiChessP3m64) <- Error (unknown command): computer
Eng01 (RomiChessP3m64) <- Error (unknown command): black
Eng01 (RomiChessP3m64) <- Error (unknown command): white
Eng01 (RomiChessP3m64) <- move e2e4
Cancelling GameMoveTimerEvent() for RomiChessP3m64 at 0000000006468191.
==========================================================================================================================
Current position (Ply 0) : rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1 = rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
System time lag per move = 0 milliseconds
Eng01 (RomiChessP3m64) thought for 31 milliseconds, time left = 119969 milliseconds
Almost in ParcelMove(from RomiChessP3m64) at Time0000000006468191

DetailsOfMove(move e2e4 = e2-e4 = e4 = e2-e4) -> nSide = White, nPieceNr = Pawn, nFrom = E2, nTo = E4, nCapturedNr = NoPiece, promo = NoPiece, ep = A1, nFlags = 40, (Move = 40000000220E0101 == 4611686018998731009)

e2-e4
Now in MakeChessMove() at Time0000000006468191, nChsProgNr = 0, ChsStrct->PlyPtr = 0

Now in MakeChessMove() at Time0000000006468191, nChsProgNr = 1, ChsStrct->PlyPtr = 0

Now in DrawGraphics() at Time0000000006468191

Now in DrawGraphics() at Time0000000006468207

EcoStr = e2e4 e4 => 1.e4

Memory: 43 MB + 7 MB (1611 MB free)
CPU Load: 82% + 15%
Total Time Elapsed = 00:00:00
MoveNr. = 0, SideToMove = black.
50 moves to 50-Move-Rule.
Last Move = e2e4 = e4 = e2-e4
Now in CheckForEndOfGame() at Time0000000006468222

Now in MakeTimeControlString() at Time0000000006468222

Now in ParcelMove() at Time0000000006468222

SendToEng2Time 0000000006468222 : Eng02 (jsuci_1_2) -> position startpos moves e2e4
.
Now in SendTimeControlString() at Time0000000006468222

SideToMove=b, nInterval = 1, nmoves = 0, imoves = 0, movestogo = 40, wtime = 120000, btime = 120000, winc = 0, binc = 0, PlyPtr = 1, TimeLeft = 120000 ms
White's TimeLeft = 119969 ms, hiding 31 ms from Black movestogo 40

SendToEng2Time 0000000006468222 : Eng02 (jsuci_1_2) -> go movestogo 40 wtime 120000 btime 120000
.
SideToMove = Black.
SendToEng9Time 0000000006468222 : Eng09 (TimeLagEngine) -> LagTo 0000000006468222
.
==========================================================================================================================
Scheduling GameMoveTimerEvent() for jsuci_1_2 at 0000000006468222.
Eng02 (jsuci_1_2) <- engine.js:31380: Uncaught TypeError: Cannot read property 'board' of undefined
Eng02 (jsuci_1_2) <- p4wn_loader.js:644: Uncaught TypeError: Cannot read property 'findmove' of undefined
WM_TimeLagEngine() says TimeLagReturn 0000000006468253 SystemLag LagTo 0000000006468222 0000000006468253
WM_TimeLagEngine() : To = 31 ms, From = 0 ms, Total = 31 ms
GameMoveTimeout of jsuci_1_2 at Time0000000006589232.
jsuci_1_2 loses on time in GameMoveTimeout().
Eng02 (jsuci_1_2) max. time lag= 0 milliseconds
Eng02 (jsuci_1_2) has been thinking for 121010 milliseconds, time left = -121011 milliseconds
Now in CheckForEndOfGame() at Time0000000006589232

Now in EndTheGame() at Time0000000006589232

1-0
.

1-0
SendToEng2Time 0000000006589263 : Eng02 (jsuci_1_2) -> stop
.
SendToEng2Time 0000000006589263 : Eng02 (jsuci_1_2) -> quit
.
SendToEng1Time 0000000006589263 : Eng01 (RomiChessP3m64) -> quit
.
Now in KillEngines() at Time0000000006590277

Now in PutResultInSchedule() at Time0000000006590277

Now in SavePGN() at Time0000000006590277

1-0
.

Now in PutResultInStringList() at Time0000000006590309

Appending C:\Users\NRL\Downloads\ChessGUI_net.1\ChessGUI_net\OUTPUT\_e1e_TmpTable.txt to C:\Users\NRL\Downloads\ChessGUI_net.1\ChessGUI_net\OUTPUT\_e1e_Table.txt at Time0000000006590309.
Now in EndChildProcess() at Time0000000006590309 to kill jsuci_1_2.

!!! Disk Space !!! (73223467008 Bytes free)
DestroyChildProcess(Eng02 = jsuci_1_2) is already dead.
Now in EndChildProcess() at Time0000000006590324 to kill RomiChessP3m64.

!!! Disk Space !!! (73223467008 Bytes free)
DestroyChildProcess(Eng01 = RomiChessP3m64) is already dead.
Now in EndChildProcess() at Time0000000006590324 to kill TimeLagEngine.

!!! Disk Space !!! (73223467008 Bytes free)
SendToEng9Time 0000000006590418 : Eng09 (TimeLagEngine) -> stop
.
SendToEng9Time 0000000006590418 : Eng09 (TimeLagEngine) -> quit
.
DestroyChildProcess(Eng09 = TimeLagEngine), soft termination, trial 1.
Now in EraseInputBuffers(TimeLagEngine).
Now in EraseInputBuffers(jsuci_1_2).
Now in EraseInputBuffers(RomiChessP3m64).
Now in SaveDeleteDebugFiles() at Time0000000006594427

but JSUCI runs normally with Arena www.playwitharena.com

[White "RomiChessP3m64"]
[Black "Jsuci_1_2"]
[Result "1-0"]
[TimeControl "40/120:40/300:40/300"]
[Opening "Skandinavische Verteidigung"]
[ECO "B01"]
[Variation "2...Qxd5 3.Nc3 Qd8"]
[Termination "normal"]
[PlyCount "53"]
[WhiteType "program"]
[BlackType "program"]

1. e4 d5 2. exd5 Qxd5 3. Nc3 Qd8 4. d4 c6 5. Bc4 Nd7 6. Nf3 Nb6 7. Bb3 Be6 8. Bxe6 fxe6 9. Qe2 Qd6 10. Ne4 Qd5 11. O-O Qc4 12. Re1 Qxe2 13. Rxe2 g6 14. Nc5 Nd5 15. Nxb7 Rb8 16. Nc5 Bh6 17. c4 Bxc1 18. cxd5 Bxb2 19. Rb1 exd5 20. Rexb2 Rc8 21. Rb8 Rxb8 22. Rxb8+ Kf7 23. Ng5+ Kf6 24. Nce6 Kf5 25. h3 Nf6 26. Rb3 Rf8 27. Rf3+ 1-0

[White "Jsuci_1_2"]
[Black "RomiChessP3m64"]
[Result "0-1"]
[TimeControl "40/120:40/300:40/300"]
[Opening "Läuferspiel"]
[ECO "C24"]
[Variation "Berlin Verteidigung"]
[Termination "normal"]
[PlyCount "56"]
[WhiteType "program"]
[BlackType "program"]

1. e4 e5 2. Bc4 Nf6 3. Ne2 Nxe4 4. d3 Nf6 5. Bg5 d5 6. Bxf6 gxf6 7. Bb3 Be6 8. Ba4+ c6 9. c3 Nd7 10. O-O Bd6 11. d4 Qb6 12. Nd2 exd4 13. Bb3 dxc3 14. bxc3 Qc7 15. Nd4 Bxh2+ 16. Kh1 O-O-O 17. g3 Bxg3 18. Nxe6 fxe6 19. fxg3 Qxg3 20. Bxd5 Qh4+ 21. Kg1 exd5 22. Rf2 Rhg8+ 23. Rg2 Rxg2+ 24. Kxg2 Rg8+ 25. Kf3 Qh3+ 26. Kf2 Rg2+ 27. Ke1 Qh4+ 28. Kf1 Qf2+ 0-1

Very strange, isn´t it?

Best wishes,
Norbert

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

Re: ChessGUI (current version) and JavaScript engines part I

Post by Norbert Raimund Leisner » Wed Aug 23, 2017 7:07 am

Another JavaScript Engine Lozza UCI https://plus.google.com/u/0/+ColinJenki ... guyzPn28Gg
and Node.JS https://nodejs.org/en/ was "Accepted"

[White "RomiChessP3m64"]
[Black "node"]
[Result "0-1"]
[TimeControl "40/120:40/120:40/120"]
[PlyCount "68"]
[Termination "resign"]
[WhiteType "program"]
[BlackType "program"]
[Variant "normal"]

1. e4 Nf6 2. e5 Nd5 3. d4 c5 4. Nf3 cxd4 5. Qxd4 e6 6. Bc4 Nc6 7. Qe4 Nb6 8. Bb5 a6 9. Bd3 d5 10. exd6 Bxd6 11. O-O f5 12. Qe2 O-O 13. Rd1 Bd7 14. Nbd2 Nd5 15. Nc4 Bc7 16. Bg5 Qb8 17. Re1 h6 18. Bd2 Re8 19. Nce5 Nxe5 20. Nxe5 Bc6 21. h4 Nf6 22. Nxc6 bxc6 23. Bc3 Ng4 24. Bc4 Bb6 25. Bxe6+ Kh8 26. Be5 Qa7 27. Bg3 Rxe6 28. Qxe6 Bxf2+ 29. Bxf2 Qxf2+ 30. Kh1 Qxh4+ 31. Kg1 Qh2+ 32. Kf1 Qh1+ 33. Ke2 Qxg2+ 34. Kd3 Rd8+ 0-1

[White "node"]
[Black "RomiChessP3m64"]
[Result "1-0"]
[TimeControl "40/120:40/120:40/120"]
[PlyCount "131"]
[Number "2"]
[Termination "resign"]
[BlackType "program"]
[WhiteType "program"]
[Variant "normal"]

1. Nf3 d5 2. e3 e6 3. d4 Nf6 4. Bd3 Nbd7 5. O-O Bd6 6. Nc3 Bb4 7. Bd2 O-O 8. a3 Bd6 9. e4 dxe4 10. Nxe4 Nxe4 11. Bxe4 c5 12. c3 cxd4 13. cxd4 Qb6 14. b4 Nf6 15. Bd3 Bd7 16. Rc1 Bb5 17. Qe2 Bxd3 18. Qxd3 h6 19. Qc4 Nd5 20. g3 Ne7 21. Qd3 Rfd8 22. Rc2 Rac8 23. Rfc1 Rxc2 24. Rxc2 Nd5
25. Rc1 Be7 26. h3 Bd6 27. Nh4 Qa6 28. Qxa6 bxa6 29. Nf3 a5 30. bxa5 Bxa3 31. Rb1 a6 32. Rb7 Bd6 33. Ra7 Nc7 34. Kg2 Kf8 35. Rb7 Ke8 36. h4 Kd7 37. Rb6 Kc8 38. Rc6 Kb7 39. Rb6+ Ka7 40. Bb4 Bxb4 41. Rxb4 f6 42. Nd2 Rd5 43. Nb3 Rb5 44. Rxb5 axb5 45. Nc5 Ne8 46. Kf3 Nd6 47. Nxe6 Ka6 48. Nxg7 Kxa5 49. Ke3 b4 50. Kd3 b3 51. Ne6 b2 52. Kc2 b1=Q+ 53. Kxb1 Kb5 54. Kc2 Kc4 55. g4 Kd5 56. Nf4+ Kxd4 57. Nh5 Ke4 58. Nxf6+ Kf4 59. Kd3 Nf7 60. Kd4 Kf3 61. Kd5 Kf4 62. Nd7 Kxg4 63. Ne5+ Kxh4 64. Nxf7 h5
65. f4 Kg3 66. f5 1-0

[White "RomiChessP3m64"]
[Black "node"]
[Result "1-0"]
[TimeControl "40/120:40/120:40/120"]
[PlyCount "112"]
[Termination "GUI adjudication"]
[BlackType "program"]
[WhiteType "program"]
[Variant "normal"]

1. e4 Nf6 2. e5 Nd5 3. d4 c5 4. Nf3 cxd4 5. Qxd4 e6 6. Bc4 Nc6 7. Qe4 Nb6 8. Bb3 d5 9. exd6 Bxd6 10. Bg5 Be7 11. Bxe7 Qxe7 12. Nc3 O-O 13. O-O-O Bd7 14. Kb1 Rac8 15. Nb5 Rcd8 16. h4 f5 17. Qe3 Nd5 18. Qd2 a6 19. Bxd5 axb5 20. Rhe1 Qf6 21. Bb3 Rfe8 22. Qe2 Na5 23. Ne5 Bc8 24. Qxb5 Nxb3
25. g3 f4 26. axb3 fxg3 27. fxg3 Qf2 28. Rg1 Rf8 29. Rdf1 Qe3 30. g4 Rf2 31. Qb4 Rdf8 32. Rxf2 Qxf2 33. Rh1 b6 34. Qd6 Qe2 35. Rc1 Rf1 36. Nd3 Rf8 37. g5 Qg4 38. Qxb6 Qxh4 39. Qe3 Qg4 40. Ne5 Qf4 41. Qxf4 Rxf4 42. Rd1 Rf5 43. Nc6 Rf8 44. b4 Ba6 45. b3 Rf1 46. Rxf1 Bxf1 47. c4 Kf7 48. b5 Bg2 49. Ne5+ Ke7 50. c5 Ba8 51. b6 Kd8 52. b4 Kc8 53. b5 Be4+ 54. Kb2 Kb7 55. Nc4 Bg2 56. Nd6+ Ka8 1-0

[White "node"]
[Black "RomiChessP3m64"]
[Result "1-0"]
[TimeControl "40/120:40/120:40/120"]
[PlyCount "96"]
[Termination "GUI adjudication"]
[BlackType "program"]
[WhiteType "program"]
[Variant "normal"]

1. Nf3 d5 2. Nc3 d4 3. Nb5 e5 4. Nxe5 a6 5. Na3 Qd5 6. Nf3 Bg4 7. e3 dxe3 8. fxe3 Nf6 9. Bc4 Qh5 10. O-O Nc6 11. d4 Rd8 12. h3 Bc8 13. Be2 Qg6 14. Nh4 Qg3 15. Nf5 Bxf5 16. Rxf5 Bd6 17. Kf1 Ne7 18. Rxf6 gxf6 19. Nc4 c5 20. Bf3 b5 21. Nxd6+ Qxd6 22. c3 Rd7 23. a4 O-O 24. axb5 axb5 25. Kg1 f5 26. Qf1 Rb8 27. Bd2 f4 28. Be4 Ng6 29. Bd3 Re7 30. Qf2 fxe3 31. Bxe3 h5 32. Bg5 Ree8 33. Ra7 f5 34. Qf3 cxd4 35. Qxh5 Re1+ 36. Bf1 Ne7 37. Qh4 dxc3 38. Qxe1 Nc6 39. Ra6 cxb2 40. Qb1 Qd4+ 41. Kh1 Qc3 42. Qxf5 Rf8 43. Qb1 Ne5 44. Bxb5 Rc8 45. Rg6+ Nxg6 46. Qxg6+ Kf8 47. Bh6+ Ke7 48. Qh7+ Kd6 1-0

Modern Times
Posts: 2142
Joined: Thu Jun 07, 2012 9:02 pm

Re: ChessGUI (current version) and JavaScript engines part I

Post by Modern Times » Wed Aug 23, 2017 7:44 am

"Current version" is technically correct, but it is already two years old because ChessGUI is no longer developed.
.

Opinions expressed here are my own, and not necessarily those of the CCRL Group.

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

Re: ChessGUI (current version) and JavaScript engines part I

Post by Norbert Raimund Leisner » Wed Aug 23, 2017 7:51 am

Lozza.Js and JSUCI12.exe work too - perhaps is P4wn Chess not a "real" UCI engine?


[Event "Third World War"]
[EventDate "?"]
[Site "ChessGUI"]
[Date "2017.08.23"]
[Round "1.1"]
[White "RomiChessP3m32"]
[Black "jsuci_1_2"]
[Result "0-1"]
[TimeControl "40/120:40/120:40/120"]
[Time "09:13:17"]
[PlyCount "111"]
[Number "1"]
[Termination "GUI adjudication"]
[WhiteType "program"]
[BlackType "program"]
[Variant "normal"]

1. e4 Nf6 2. e5 Nd5 3. d4 c5 4. Nf3 cxd4 5. Qxd4 e6 6. Bc4 Nc6 7. Qd3 Qa5+ 8. Bd2 Ndb4
9. Qe4 f5 10. exf6 d5 11. Qg4 gxf6 12. Qh5+ Kd8 13. Bb3 Qa6 14. Qf7 Be7 15. Qg7 Re8 16. Bxb4 Bxb4+
17. Nbd2 Bd7 18. Qxh7 Rc8 19. h4 Kc7 20. Qh6 Rg8 21. g3 Kb8 22. h5 Ne5 23. Qxf6 Nxf3+ 24. Qxf3 Rgf8
25. Qe3 Bc5 26. Qe5+ Bd6 27. Qg7 Bb5 28. a4 Be2 29. h6 Rc7 30. Qg5 Bc5 31. Rh2 Bd4 32. Ra2 Rf5
33. Qg8+ Rc8 34. h7 Bh5 35. f4 Rff8 36. Qxf8 Rxf8 37. Rxh5 Qb6 38. a5 Qc5 39. Ke2 Bf6 40. Nf3 Qb5+
41. Kd1 Qc5 42. Rh6 Qe3 43. Ne1 Bg7 44. Rh3 Bh8 45. Nd3 Qf3+ 46. Ke1 Bd4 47. Rh6 Qxg3+ 48. Kd1 Qf3+
49. Ke1 Qe3+ 50. Kd1 Rh8 51. Ra4 Bg7 52. Rh4 Bxb2 53. Nxb2 Qg1+ 54. Ke2 Qg2+ 55. Kd1 Qf1+ 56. Kd2 0-1

[Event "Third World War"]
[EventDate "?"]
[Site "ChessGUI"]
[Date "2017.08.23"]
[Round "1.2"]
[White "jsuci_1_2"]
[Black "RomiChessP3m32"]
[Result "1-0"]
[TimeControl "40/120:40/120:40/120"]
[Time "09:18:52"]
[PlyCount "115"]
[Number "2"]
[Termination "wrong claim"]
[BlackType "program"]
[WhiteType "program"]
[Variant "normal"]

1. Nf3 d5 2. e3 e6 3. Nc3 Nf6 4. d4 Bd7 5. Bd3 c5 6. O-O c4 7. Be2 Bd6 8. e4 Nxe4
9. Nxe4 dxe4 10. Nd2 Qc7 11. g3 c3 12. Nxe4 cxb2 13. Bxb2 O-O 14. Nxd6 Qxd6 15. Qd3 Bc6 16. Ba3 Qd5
17. f3 Rd8 18. Rfd1 Qa5 19. Be7 Rd7 20. Qa3 Qxa3 21. Bxa3 Ba4 22. Rd2 Nc6 23. c3 Rc8 24. Kg2 Ne5
25. Rb2 Nc4 26. Bxc4 Rxc4 27. Bb4 b6 28. Re1 h5 29. Re3 Bc6 30. Rb1 Bd5 31. Kh3 Rdc7 32. Rb2 a5
33. Bd6 R7c6 34. Be7 Rxc3 35. Rxc3 Rxc3 36. f4 Rd3 37. Bd8 Rxd4 38. Bxb6 Rb4 39. Rxb4 axb4 40. Bc5 Bxa2
41. Bxb4 Kh7 42. Kg2 Kg6 43. Bf8 Bd5+ 44. Kf2 f6 45. Ke3 e5 46. h3 Kf7 47. Bc5 Bg2 48. fxe5 fxe5
49. h4 Bd5 50. Kd3 Ke6 51. Bb4 Kf5 52. Bc5 Kg4 53. Bd6 Kxg3 54. Bxe5+ Kxh4 55. Bxg7 Kh3 56. Kd4 Bb7
57. Bf6 h4 58. Bxh4 1-0

[Event "Third World War"]
[EventDate "?"]
[Site "ChessGUI"]
[Date "2017.08.23"]
[Round "2.1"]
[White "RomiChessP3m32"]
[Black "jsuci_1_2"]
[Result "1-0"]
[TimeControl "40/120:40/120:40/120"]
[Time "09:24:42"]
[PlyCount "138"]
[Number "3"]
[Termination "GUI adjudication"]
[BlackType "program"]
[WhiteType "program"]
[Variant "normal"]

1. e4 Nf6 2. e5 Nd5 3. d4 c5 4. Nf3 cxd4 5. Qxd4 e6 6. Bc4 Nc6 7. Qe4 Be7 8. Bxd5 exd5
9. Qxd5 d6 10. Nc3 dxe5 11. Nxe5 Qxd5 12. Nxd5 Nxe5 13. Nc7+ Kd7 14. Nxa8 Kc6 15. Bf4 f6 16. O-O-O Bf5
17. Bxe5 fxe5 18. Rhe1 Bf6 19. f3 Rxa8 20. Kb1 Re8 21. Re2 Re7 22. Re3 Rd7 23. Rxd7 Kxd7 24. Rb3 b6
25. Ra3 a5 26. Rb3 Kc6 27. Rc3+ Kd6 28. Rb3 Bd8 29. Re3 b5 30. Re1 Bb6 31. Kc1 b4 32. c4 bxc3
33. bxc3 Bc5 34. a4 Kd5 35. Kb2 e4 36. g4 Bg6 37. fxe4+ Bxe4 38. Kb3 Bd6 39. c4+ Kd4 40. Rd1+ Bd3
41. h3 Be7 42. h4 Bxh4 43. c5 h6 44. c6 Bg3 45. Rc1 Bc7 46. Rd1 Bf4 47. Kb2 Ke3 48. Rc1 Bc7
49. Re1+ Be2 50. Kc3 Bg3 51. Rc1 Be5+ 52. Kb3 Bxg4 53. Kc4 h5 54. Kd5 Bc7 55. Re1+ Be2 56. Rg1 Bf3+
57. Kc5 Bg4 58. Re1+ Be2 59. Rg1 Be5 60. Kb6 Bd4+ 61. Kxa5 Be5 62. Kb6 Bd4+ 63. Ka5 Bc3+ 64. Kb6 Bc4
65. Rg3+ Kd2 66. Rxc3 Kxc3 67. a5 Be6 68. a6 Kd3 69. a7 Bf5 1-0

[Event "Third World War"]
[EventDate "?"]
[Site "ChessGUI"]
[Date "2017.08.23"]
[Round "2.2"]
[White "jsuci_1_2"]
[Black "RomiChessP3m32"]
[Result "1/2-1/2"]
[TimeControl "40/120:40/120:40/120"]
[Time "09:31:56"]
[PlyCount "248"]
[Number "4"]
[Termination "50-move rule"]
[BlackType "program"]
[WhiteType "program"]
[Variant "normal"]

1. Nf3 d5 2. e3 e6 3. Nc3 Nf6 4. d4 c5 5. Bb5+ Bd7 6. O-O Nc6 7. Bxc6 Bxc6 8. Qe2 Qb6
9. a4 cxd4 10. a5 Qc7 11. exd4 Bb4 12. Bd2 a6 13. Rfc1 Bd6 14. Ne5 O-O 15. Bf4 Nd7 16. Re1 Nxe5
17. Bxe5 Bxe5 18. Qxe5 Rac8 19. Qxc7 Rxc7 20. Ra3 Rfc8 21. Rb3 h5 22. Rb4 Kh7 23. f4 Rb8 24. Kf2 Rbc8
25. Re5 g6 26. Kf3 Bd7 27. Re1 f6 28. g3 Rf8 29. Rb6 Kg7 30. h3 Kh6 31. Rexe6 Bxe6 32. Rxe6 f5
33. Ke3 h4 34. gxh4 Rd8 35. Ke2 Kh5 36. Kf3 Kh6 37. Re5 Kh5 38. Re6 Rdd7 39. Re8 Kh6 40. Kf2 Rc6
41. Ke2 b5 42. axb6 Rxb6 43. b3 Rc6 44. Kd3 Rcd6 45. h5 Rd8 46. Re7 R8d7 47. Rxd7 Rxd7 48. hxg6 Kxg6
49. Nd1 Rh7 50. Ne3 Rxh3 51. Kd2 Rh2+ 52. Kd3 Rh3 53. Kd2 Rh2+ 54. Kc1 Kf6 55. Nxd5+ Ke6 56. c4 Re2
57. Nc7+ Kd6 58. Nxa6 Re4 59. d5 Rxf4 60. Kd2 Rf3 61. b4 f4 62. Nc5 Rh3 63. Ke2 Ke5 64. Nb7 Rc3
65. d6 f3+ 66. Kd2 Rxc4 67. Na5 Rd4+ 68. Ke3 Ke6 69. b5 Ra4 70. Nc6 Ra3+ 71. Kf2 Kxd6 72. Nd4 Kd5
73. Nxf3 Rb3 74. b6 Rxb6 75. Ke3 Ra6 76. Kf4 Re6 77. Kf5 Re7 78. Kf4 Re2 79. Kf5 Re4 80. Ng5 Re3
81. Kf4 Re8 82. Nf3 Re4+ 83. Kf5 Rb4 84. Ng5 Rb2 85. Ne4 Kd4 86. Nf6 Re2 87. Nh7 Re5+ 88. Kf4 Re1
89. Kf5 Rf1+ 90. Ke6 Rf4 91. Nf6 Rh4 92. Nd5 Re4+ 93. Kd6 Rg4 94. Nf6 Rg1 95. Ke6 Ra1 96. Kf5 Rh1
97. Ke6 Rc1 98. Kd6 Rb1 99. Ke6 Rb5 100. Nd7 Ra5 101. Nf6 Re5+ 102. Kd6 Rc5 103. Ke6 Rc6+ 104. Kf5 Ra6
105. Ne4 Ra5+ 106. Kf4 Ra1 107. Nd2 Kd3 108. Nb3 Re1 109. Kf5 Kc4 110. Nd2+ Kd5 111. Nf3 Re2 112. Kf4 Re8
113. Ng5 Rf8+ 114. Ke3 Rf5 115. Nf3 Rf7 116. Nd2 Rb7 117. Nf3 Rb4 118. Nd2 Ra4 119. Nf3 Ra1 120. Kf4 Rb1
121. Ke3 Rb7 122. Kd3 Rg7 123. Kc2 Rg3 124. Nd2 Rg1 1/2-1/2


User avatar
hgm
Posts: 22327
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: ChessGUI (current version) and JavaScript engines part I

Post by hgm » Wed Aug 23, 2017 8:20 am

It looks like an engine problem: the error message complains about something that goes wrong in the engine. 'uciok' and 'readyok' are reported, but perhaps JSUCI is solely responsible for that, without the need for the .js engine to do anything. In that case the engine might not be JSUCI-compatible at all.

Michael Sherwin
Posts: 2799
Joined: Fri May 26, 2006 1:00 am
Location: OH, USA

Re: ChessGUI (current version) and JavaScript engines part I

Post by Michael Sherwin » Wed Aug 23, 2017 11:58 am

Something is not right. Romi is making moves in some of those games that never comes up in the analysis. Hmm another mystery to solve.
Regards,
Mike

Post Reply