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

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

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
op12no2
Posts: 349
Joined: Tue Feb 04, 2014 11:25 am
Location: Mumbles, Wales, UK.
Full name: Colin Jenkins
Contact:

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

Post by op12no2 » Sat Oct 18, 2014 10:12 pm

Hi all,

Something a little different...

As well as gradually improving the engine, I've recently extended the online toys associated with it:-

Play Lozza online - http://op12no2.me/toys/lozza/play.htm - no time controls - she moves in the time you move...

Analyse/evaluate a FEN - http://op12no2.me/toys/lozza/fen.htm

UCI command line console - http://op12no2.me/toys/lozza/console.htm

Needs a modern browser because Lozza is fired up in a web worker. Google Chrome is by far the best for performance with their amazing V8 based Javascript.

As a UCI engine, Lozza can also be used in a traditional UIs like Winboard and Arena by using Edmund M's jsUCI tool and starting with jsuci.exe lozza.js. Both in same directory is best.

https://chessprogramming.wikispaces.com/JSUCI

Ferdy
Posts: 4271
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

Re: Lozza - a Javascript web based UCI engine - update v1.1

Post by Ferdy » Sun Oct 19, 2014 7:07 am

I tried playing it with Deuterium android at 5s/move using pgn master, on my tab (around 1.2 Ghz), and observed that when I capture the pawn by ep, the captured pawn was not removed from the board, say white has e5 pawn and black played f7f5, then I played 10. e5xf6 (ep), the board was updated, with my white pawn in f6 and still a black pawn in f5. But after black's reply Nxf6 the pawn in f5 is now removed.
Also when I promote the pawn to queen, the gui does not allow it, or perhaps there is another method where I am not aware of. But pushing the pawn to 8th rank, the pawn will return back to 7th rank.

Here is the game.
[pgn]
[Event "online game"]
[Site "?"]
[Date "2014.??.??"]
[Round "1"]
[White "deuterium 14.3 android"]
[Black "lozza toys"]
[Result "1-0"]

1. Nf3 Nf6 2. d4 e6 3. e3 Be7 4. Bd3 O-O 5. O-O c5 6. dxc5 Bxc5 7. e4 d5 8. e5
Ne4 9. Qe1 f5 10. exf6 Nxf6 11. Bd2 Nc6 12. b4 Bd6 13. b5 Ne7 14. Bb4 a6 15. a3
axb5 16. Nc3 Bxb4 17. axb4 Rxa1 18. Qxa1 Nc6 19. Bxb5 Nxb4 20. Rb1 Na6 21. Bd3
Nc5 22. Qa3 Nxd3 23. cxd3 Nh5 24. Ne2 Qc7 25. Rc1 Qb8 26. Qe7 Nf6 27. Qc7 Qa7
28. Ne5 Nd7 29. Nf3 Qa6 30. Nf4 Qb6 31. g3 h6 32. Qxb6 Nxb6 33. Ne5 g5 34. Nfg6
Rd8 35. Rc7 Nd7 36. Nxd7 Bxd7 37. Rxb7 Be8 38. Ne5 Kf8 39. Kg2 h5 40. h3 Rd6 41.
d4 Ra6 42. g4 hxg4 43. hxg4 Rd6 44. Kg3 Rd8 45. Nf3 Bc6 46. Rh7 Rd7 47. Rh6 Rd6
48. Nxg5 Bd7 49. Rh7 Ke8 50. Nf7 Rb6 51. g5 Bc6 52. g6 Kf8 53. Kf4 Be8 54. Rh8+
Ke7 55. Ne5 Bxg6 56. Nxg6+ Kf6 57. Ne5 Rb4 58. Rh6+ Kg7 59. Nc6 Rxd4+ 60. Nxd4
Kxh6 61. Ke5 Kg5 62. f4+ Kg6 63. Kxe6 Kg7 64. f5 Kf8 65. f6 Kg8 66. Nf5 Kh7 67.
f7 Kg6 68. f8=Q {The toy does not allow promotion.} 1-0
[/pgn]

stevenaaus
Posts: 604
Joined: Wed Oct 13, 2010 7:44 am
Location: Australia
Contact:

Re: Lozza - a Javascript web based UCI engine - update v1.1

Post by stevenaaus » Sun Oct 19, 2014 8:03 am

no time controls - she moves in the time you move
Yeah , right. We'll all clean it up with those odds. :)

op12no2
Posts: 349
Joined: Tue Feb 04, 2014 11:25 am
Location: Mumbles, Wales, UK.
Full name: Colin Jenkins
Contact:

Re: Lozza - a Javascript web based UCI engine - update v1.1

Post by op12no2 » Sun Oct 19, 2014 8:17 am

Ferdy wrote:I tried playing it with Deuterium android at 5s/move using pgn master, on my tab (around 1.2 Ghz), and observed that when I capture the pawn by ep, the captured pawn was not removed from the board, say white has e5 pawn and black played f7f5, then I played 10. e5xf6 (ep), the board was updated, with my white pawn in f6 and still a black pawn in f5. But after black's reply Nxf6 the pawn in f5 is now removed.
Also when I promote the pawn to queen, the gui does not allow it, or perhaps there is another method where I am not aware of. But pushing the pawn to 8th rank, the pawn will return back to 7th rank.
Thanks Ferdinand. When I read the part about the promotion problem I immediately thought "ah yes" - oversight on my part - sorry about that.

Not so the EP; I will investigate - thanks again. I have to admit, EP problems have followed me everywhere on my little chess adventure.

op12no2
Posts: 349
Joined: Tue Feb 04, 2014 11:25 am
Location: Mumbles, Wales, UK.
Full name: Colin Jenkins
Contact:

Re: Lozza - a Javascript web based UCI engine - update v1.1

Post by op12no2 » Sun Oct 19, 2014 8:47 am

stevenaaus wrote:
no time controls - she moves in the time you move
Yeah , right. We'll all clean it up with those odds. :)
Yeah, well, every time I think about implementing time controls, I seem to find something more interesting to do. But yes, if it's going to be a useful site at all, I need to bite the bullet at some point... :)

op12no2
Posts: 349
Joined: Tue Feb 04, 2014 11:25 am
Location: Mumbles, Wales, UK.
Full name: Colin Jenkins
Contact:

Re: Lozza - a Javascript web based UCI engine - update v1.1

Post by op12no2 » Sun Oct 19, 2014 10:22 am

Ferdy wrote: Also when I promote the pawn to queen, the gui does not allow it, or perhaps there is another method where I am not aware of. But pushing the pawn to 8th rank, the pawn will return back to 7th rank.
Fixed, thanks again Ferdinand. Well, fixed to the point that it assumes Q for now...

op12no2
Posts: 349
Joined: Tue Feb 04, 2014 11:25 am
Location: Mumbles, Wales, UK.
Full name: Colin Jenkins
Contact:

Re: Lozza - a Javascript web based UCI engine - update v1.1

Post by op12no2 » Sun Oct 19, 2014 4:21 pm

stevenaaus wrote:
no time controls - she moves in the time you move
Yeah , right. We'll all clean it up with those odds. :)
Primitive time-to-move added.

http://op12no2.me/toys/lozza/play.htm

Ferdy
Posts: 4271
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

Re: Lozza - a Javascript web based UCI engine - update v1.1

Post by Ferdy » Mon Oct 20, 2014 2:58 am

Colin wrote:Primitive time-to-move added.
When you set time to 10 sec (or any number that is not 1) and play the black side, the 10 sec will revert to 1 sec after pressing "play with black" button, as a result the engine playing white will only think for 1 sec. Changing the time again, and without pressing that button, the engine will play now based on the indicated time.

op12no2
Posts: 349
Joined: Tue Feb 04, 2014 11:25 am
Location: Mumbles, Wales, UK.
Full name: Colin Jenkins
Contact:

Re: Lozza - a Javascript web based UCI engine - update v1.1

Post by op12no2 » Mon Oct 20, 2014 7:40 am

Ferdy wrote: When you set time to 10 sec (or any number that is not 1) and play the black side, the 10 sec will revert to 1 sec after pressing "play with black" button, as a result the engine playing white will only think for 1 sec. Changing the time again, and without pressing that button, the engine will play now based on the indicated time.
Thanks, I'll fix it.

Somebody asked me about running Lozza in Winboard/Arena. I wrote a post about it:-

http://op12no2.me/posts/1818

User avatar
Sylwy
Posts: 3374
Joined: Fri Apr 21, 2006 2:19 pm
Location: IASI (Romania) - the historical capital of MOLDOVA

Re: Lozza - a Javascript web based UCI engine - update v1.1

Post by Sylwy » Mon Oct 20, 2014 9:06 am

op12no2 wrote:
Ferdy wrote: When you set time to 10 sec (or any number that is not 1) and play the black side, the 10 sec will revert to 1 sec after pressing "play with black" button, as a result the engine playing white will only think for 1 sec. Changing the time again, and without pressing that button, the engine will play now based on the indicated time.
Thanks, I'll fix it.

Somebody asked me about running Lozza in Winboard/Arena. I wrote a post about it:-

http://op12no2.me/posts/1818
Hey man !

I was two days in mountains ! A great news !

The thing really works ! :lol:

Thank you !

S :wink: R

Image
SilvianR :wink:

Post Reply