Lozza - a Javascript web based UCI engine - update v1.10

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

Moderators: hgm, Rebel, chrisw

User avatar
Sylwy
Posts: 4468
Joined: Fri Apr 21, 2006 4:19 pm
Location: IASI - the historical capital of MOLDOVA
Full name: SilvianR

Re: A lot of more confortable.................

Post by Sylwy »

op12no2 wrote:
Graham Banks wrote:Hi Colin,
can I download the engine itself for use in an external GUI in Windows?
Graham.
1.-From my personal perspective it would be lovely to see Javascript engines in rating lists but I would also fully understand if testers rejected them. It's an interesting decision...

My longer term plan is to write my own C program that overtly embeds Lozza, 2.-making the fact that it is Javascript opaque to the outside world.

Hello !

Well, sometimes CCRL & CEGT (the main testers in computer chess area) are a bit curious. Very interesting engines (being just an UCI compatible executable) aren't tested (Barbarossa - a very interesting chess engine written in Haskell was never tested - just an example). Some testers use ChessBase GUIs (Fritz) to run their tests. Here, every Winboard only compatible engine needs the Wb2Uci adapter ( an utility created by Mr.Odd Gunnar Malin) to run a game. And to set in a correctly way the Wb2Uci.eng file of this adapter is not a simple matter (see please EXChess or Crafty.........). Just an incorrectly MateScore option can alter the match result !
By contrast - the jsuci utility of Mr.Edmund Moshammer is extremely easy to be used ! So, I don't know why CCRL & CEGT have that attitude !
For me it's - now - clear : Lozza 1.12 has around 2174 Elo points ( at a CCRL TC= 4/40 compatible). In CCRL rating list (4/40 moves) they are 251 weaker chess engines tested !!! And Lozza is a special chess engine : original (rara avis in our day ) and written by a professional in Javascript !
That's life ! :roll:

Regards,
SilvianR :wink:
op12no2
Posts: 490
Joined: Tue Feb 04, 2014 12:25 pm
Full name: Colin Jenkins

Re: A lot of more confortable.................

Post by op12no2 »

Fixed the bugs reported by Ferdinand and Pawel; thanks for the feedback.

v1.13 Fix play UI lockup when trying to move while waiting for Lozza.
v1.13 Add win/draw detection to play UI.
v1.13 Fix delayed castling and EP in play UI.
v1.13 Add untuned mobility to eval.

http://op12no2.me/toys/lozza
op12no2
Posts: 490
Joined: Tue Feb 04, 2014 12:25 pm
Full name: Colin Jenkins

Re: Lozza - a Javascript web based UCI engine

Post by op12no2 »

Interestingly jxCore is a fork of jsNode that has a packaging ability.

Javascript chess engines executing in the jxCore environment - which in itself is a wrapper for Googles's V8 Javascript engine with twiddly bits to access the file system etc - can be packaged as a native executable for the OS running jxCore.

e.g. Here is a 64 bit Windows exe of Lozza:-

http://op12no2.me/stuff/lozza.zip

So as well as running natively in web browsers, Javascript engines can be easily (it really is a trivial process) packaged for any OS that can run jsCore (lots) and run in regular chess UIs like Winboard and Arena without the need for users thmselves to install isUCI or jsNode/jsCore - the executable above is completely independent.
User avatar
Graham Banks
Posts: 41473
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: Lozza - a Javascript web based UCI engine

Post by Graham Banks »

op12no2 wrote:
e.g. Here is a 64 bit Windows exe of Lozza:-

http://op12no2.me/stuff/lozza.zip

So as well as running natively in web browsers, Javascript engines can be easily (it really is a trivial process) packaged for any OS that can run jsCore (lots) and run in regular chess UIs like Winboard and Arena without the need for users thmselves to install isUCI or jsNode/jsCore - the executable above is completely independent.
Hi Colin,

this is Lozza 1.13 64-bit?
I'm going to try it out now and add it to my testing list. :)

Thanks,
Graham.
gbanksnz at gmail.com
User avatar
Graham Banks
Posts: 41473
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: Lozza - a Javascript web based UCI engine

Post by Graham Banks »

Another Lozza logo.

Image
gbanksnz at gmail.com
op12no2
Posts: 490
Joined: Tue Feb 04, 2014 12:25 pm
Full name: Colin Jenkins

Re: Lozza - a Javascript web based UCI engine

Post by op12no2 »

Hi Graham,

Yay!

Yes, 64bit, no dependencies (in theory - seems OK).

Can I be a pain and ask you to use this one though:-

http://op12no2.me/toys/lozza/lozza13.zip - it's slightly better.

Thanks very much for considering Javascript engines. They will never be as fast as native executables but that is traded off against their native web capability.

Love the logo!

Thanks again.
User avatar
Graham Banks
Posts: 41473
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: Lozza - a Javascript web based UCI engine

Post by Graham Banks »

op12no2 wrote:Hi Graham,

Yay!

Yes, 64bit, no dependencies (in theory - seems OK).

Can I be a pain and ask you to use this one though:-

http://op12no2.me/toys/lozza/lozza13.zip - it's slightly better.

Thanks very much for considering Javascript engines. They will never be as fast as native executables but that is traded off against their native web capability.

Love the logo!

Thanks again.
Okay - will switch the exe now.
I'll run a blitz match or two now (40/4 repeating). Will be in TLCV shortly if you're interested in following.
GrahamCCRL.dyndns.org
16063
gbanksnz at gmail.com
op12no2
Posts: 490
Joined: Tue Feb 04, 2014 12:25 pm
Full name: Colin Jenkins

Re: Lozza - a Javascript web based UCI engine

Post by op12no2 »

Graham Banks wrote: I'll run a blitz match or two now (40/4 repeating). Will be in TLCV shortly if you're interested in following.
GrahamCCRL.dyndns.org
16063
I see it! Does TLCV need the node info sent back in a particular way? - I see Lozza is not showing it.

this is an example of what it sends:-

Code: Select all

bestmove g1f3
info nodes 358554 time 1238 nps 289623
info nodes 283486 time 1041 nps 272320
info hashfull 1
info depth 10 seldepth 24 score cp 20 pv Nf3 d5 d4 Nc6 Bf4 Nf6 e3 Bg4 Nc3 e6
info hashfull 1
info depth 10 seldepth 22 score cp 8 pv Nc3 d5 d4 Nf6 Nf3 Nc6 e3 Bg4 h3 Bf5
info currmove Nc3 currmovenumber 1
info hashfull 1
info nodes 116190 time 525 nps 221314
info hashfull 1
info depth 9 seldepth 20 score cp 29 pv Nc3 d5 d4 Nf6 Bg5 h6 Be3 Nc6 Nf3
info currmove Nc3 currmovenumber 1
info hashfull 1
info hashfull 0
info depth 8 seldepth 20 score cp 3 pv Nc3 Nf6 Nf3 Nc6 d4 d5 Bf4 e6
info currmove Nc3 currmovenumber 1
...
User avatar
Graham Banks
Posts: 41473
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: Lozza - a Javascript web based UCI engine

Post by Graham Banks »

op12no2 wrote:
Graham Banks wrote: I'll run a blitz match or two now (40/4 repeating). Will be in TLCV shortly if you're interested in following.
GrahamCCRL.dyndns.org
16063
I see it! Does TLCV need the node info sent back in a particular way? - I see Lozza is not showing it.

this is an example of what it sends:-

Code: Select all

bestmove g1f3
info nodes 358554 time 1238 nps 289623
info nodes 283486 time 1041 nps 272320
info hashfull 1
info depth 10 seldepth 24 score cp 20 pv Nf3 d5 d4 Nc6 Bf4 Nf6 e3 Bg4 Nc3 e6
info hashfull 1
info depth 10 seldepth 22 score cp 8 pv Nc3 d5 d4 Nf6 Nf3 Nc6 e3 Bg4 h3 Bf5
info currmove Nc3 currmovenumber 1
info hashfull 1
info nodes 116190 time 525 nps 221314
info hashfull 1
info depth 9 seldepth 20 score cp 29 pv Nc3 d5 d4 Nf6 Bg5 h6 Be3 Nc6 Nf3
info currmove Nc3 currmovenumber 1
info hashfull 1
info hashfull 0
info depth 8 seldepth 20 score cp 3 pv Nc3 Nf6 Nf3 Nc6 d4 d5 Bf4 e6
info currmove Nc3 currmovenumber 1
...
No idea. You'd need to ask Matthias.

Lozza seems to be working just fine though as far as playing goes.
NGplay 9.86 64-bit is one of the bottom engines in my Amateur Division 7, so we'll see how Lozza gets on.
Will try either Carballo 0.8 or Napoleon 1.5.0 64-bit next.
gbanksnz at gmail.com
User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Re: Lozza - a Javascript web based UCI engine

Post by Matthias Gemuh »

Graham Banks wrote:
op12no2 wrote:... Does TLCV need the node info sent back in a particular way? - I see Lozza is not showing it.
...
No idea. You'd need to ask Matthias.

...
By default, ChessGUI parses only info strings that have score or pv.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de