glinscott / leela-chess

**MOVED TO https://github.com/LeelaChessZero/leela-chess ** A chess adaption of GCP's Leela Zero
http://lczero.org
GNU General Public License v3.0
760 stars 299 forks source link

LCzero on any chess servers? #170

Closed pw31 closed 6 years ago

pw31 commented 6 years ago

Is it possible to play against currently best LCzero on any internet chess server? If not, are there any plans for the future? I think this would be great for the promotion of LCzero. Most players will beat it easily now, but if it gains like 100 ELO points per week, or maybe every month, users will sooner or later get deeply impressed. And I would be great to observe how its playing style changes, which should be quite different from current engines.

CheckersGuy commented 6 years ago

I don't know of anyone running lcZero on a chessServer. I don't know of any chess server that allow engines to play and if there are still any, they probably aren't that popular anymore. However, I like the idea of Lz0 playing against human chess players of various strengths.

mooskagh commented 6 years ago

In FICS it is surely allowed. (engines can play as guest accounts, or as computer accounts for which you should ask FICS admin) It should be possible to setup with no coding at all ( https://chess.stackexchange.com/questions/8097/how-to-connect-a-uci-chess-engine-play-on-fics), but someone should run that on their always-on computer with GPU.

On Thu, Mar 22, 2018 at 9:42 PM CheckersGuy notifications@github.com wrote:

I don't know of anyone running lcZero on a chessServer. I don't know of any chess server that allow engines to play and if there are still any, they probably aren't that popular anymore. However, I like the idea of Lz0 playing against human chess players of various strengths.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/glinscott/leela-chess/issues/170#issuecomment-375450610, or mute the thread https://github.com/notifications/unsubscribe-auth/AKvpl8eWOIFp1PPFz4cOBnJ6RUUMm7hVks5thAyZgaJpZM4S3rEs .

Uriopass commented 6 years ago

I tried my best at making something: 82.239.212.154 Also at http://play.lczero.org/

It's currently running with latest network with 150ms to think on my GTX 1050M EDIT: Had forgotten a infinite loop, fixed now. EDIT2: Woah it's monitoring far too much info, my log file is exploding. EDIT3: Removed some monitoring, had to restart the server a few times :) EDIT4: Added the -n option

I will let it up, won't shut down my computer. Feel free to share the link :) Also disponible at http://uriopass.freeboxos.fr/ for people that hates IPs.

armstrong-a commented 6 years ago

Thanks for hosting a website to play LC0! It plays great!

Zeta36 commented 6 years ago

Wow!! Great idea. I think the server running the web http://lczero.org/ could host the same thing @Uriopass did and add later a link in the menu of the web. That would be great to attract new people to the project.

Uriopass commented 6 years ago

@mooskagh who is hosting the project ~will redirect~ is redirecting http://play.lczero.org/ to my computer for now :) I think glinscott already has too much on his hands to host a play server right now, also because it's not very well written for the moment.

mooskagh commented 6 years ago

I don't host it actually, I only registered the domain name.

On Fri, Mar 23, 2018 at 8:14 AM Douady Pâris notifications@github.com wrote:

@mooskagh https://github.com/mooskagh who is hosting the project will redirect play.lczero.org to my computer for now :) I think glinscott already has too much on his hands to host a play server right now, also because it's not very well written for the moment.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/glinscott/leela-chess/issues/170#issuecomment-375564689, or mute the thread https://github.com/notifications/unsubscribe-auth/AKvpl9zAmaCh1h2SJVsrt5a9_EtGFcPSks5thKDCgaJpZM4S3rEs .

Uriopass commented 6 years ago

Oops yeah I meant the domain !

jkiliani commented 6 years ago

Just played a game at play.lczero.org (and lost, which is what happens when you blunder a rook :grin:) Great idea, thanks @Uriopass for hosting it. Is there a link to this yet from the site itself?

Uriopass commented 6 years ago

Nope not yet, @glinscott would have to add it :)

pw31 commented 6 years ago

@Uriopass : hey, this is so cool, thank you very much! Would it be possible to increase from 150ms to say 2sec to squeeze out more ELO? (or maybe have an option to select thinking time)? If deepmind is correct, neural networks should scale better than normal alpha-beta engines. An output of winrate and PV would also be great!

Uriopass commented 6 years ago

The thing is I have only one GPU and they are many users playing, so I can't just allow 2s for everyone as it would stall my Gpu. I plan on adding a "slow mode" with 2 or 3 seconds to think per move then there's a 30 seconds wait time before asking for another move. That way if you want to play against stronger computer you'd have to wait.

pw31 commented 6 years ago

Understood. Good idea! BTW, the tool didn't yet pick up the latest net 38576aeb. Does that need handy work each time, or is this automated? What do you think about my idea to show winrate and PV? Thanks!

pw31 commented 6 years ago

Network id 23 (38576aeb) impressed me with this game (LCzero playing black): https://lichess.org/GW8ac5wJ. I'm about 1600-1700 ELO. Cudos to @Uriopass.

luigio commented 6 years ago

I noticed the interface doesn't allow underpromotion. Could that be fixed?

Uriopass commented 6 years ago

I know it doesn't, but you won't have an interface like lichess or something, just a textbox with the name of the promotion (that has to be valid) like "q" or "r". Also @pw31 I think winrate and PV would be "cheating" since you'd see what lczero is thinking :p It is also supposed to be a simple experience. Advanced user might want to download the client ^^

EDIT : Slow mode is out, giving leela a 2s thinking time which should make her very strong. There's a 20s wait time between moves however :)

luigio commented 6 years ago

How about an option to flip the board? As it is, playing as Black is quite confusing.

Uriopass commented 6 years ago

Done :-)

luigio commented 6 years ago

I know it doesn't [allow underpromotion], but you won't have an interface like lichess or something, just a textbox with the name of the promotion (that has to be valid) like "q" or "r".

That would be perfectly fine with me! Better an ugly interface than wrong rules, IMO. It's not chess if you can't win by promoting to a knight. :)

Advanced user might want to download the client ^^

I did, but I'm on an old 32-bit laptop, so I can't use Leela locally. Your site is my only option, and Leela is much more fun to play against than Stockfish on easy levels.

Uriopass commented 6 years ago

Done :-)

Uriopass commented 6 years ago

Also should be working way better on mobile devices (no more annoying scroll). Also added async move, so it loads better, and the animation is more smooth.

luigio commented 6 years ago

Thanks. Not much time left till it gets too strong for me. :)

CheckersGuy commented 6 years ago

Would be nice if one could select different versions of Leela in the future. Might not take very long until I can't beat her anymore :P

Uriopass commented 6 years ago

I wish I'd beat her at least once..

luigio commented 6 years ago

I've beaten it several times, but it's beaten me more times than I'm willing to admit.

gsobala commented 6 years ago

I am running LCZero under account redshift on chessclub.com. I resuscitated this defunct account today. I am having to spend some time getting its ratings down as previously it was running Deep Hiarcs with a ICC rating of about 2850!

It is currently running matches against one of the ICC Bot accounts StrongBach. So far it has played 16 bullet games against StrongBach with a time control of 1+1 and a score of +12 =1 -3 (12.5/16). This would give it an estimated rating of +2021 compared to this bot's rating of around 1800. Note that this bot is constantly playing simuls against real humans, so it is constantly recalibrating its rating against meat rather than silicon.

It is now playing StrongBach at blitz 4+2

luigio commented 6 years ago

Uriopass, thanks for making those improvements. I still have two small suggestions to improve usability of the promotion button, if you'll bear with me:

  1. Since queen and knight are the only options that will be realistically used in a game, I think the promotion order should be like this: queen, knight, bishop, rook. The loop is the same, just inverted.

  2. It's easy to forget that you have pressed the promotion button before, and there is no takeback button if you promote to the wrong piece. For this reason, I think the promotion button should revert to queen after every move.

Uriopass commented 6 years ago

Good ideas for the promotion, I wonder if it was ever used but yeah :) Just checked, promotion to something else than queen was never used, even by leela, I'll add the changes you suggested anyway ^^ EDIT: Done :)

luigio commented 6 years ago

Cool, thanks!

glinscott commented 6 years ago

@Uriopass this is really cool! Thanks for setting it up :).

Uriopass commented 6 years ago

Added moves while waiting in slow mode, as I'd seen some people asking on the talkchess.com forum :-)

luigio commented 6 years ago

Those are just moves, not pre-moves.

EDIT: But nice addition. Didn't make much sense to have to wait 10 s to make your move.

Uriopass commented 6 years ago

You're right !

luigio commented 6 years ago

Yes, so it should just say "Leela will play when waiting time is over" instead of "Pre move registered. Leela will play when time is over".

luigio commented 6 years ago

I tried to make a Leela vs Leela game but it stops responding after about 35 moves. Is that intentional?

Uriopass commented 6 years ago

With slow or fast mode ? It's not intentional and maybe the problem is on your connection. I'll try later.

Uriopass commented 6 years ago

Also forgot about this string, I'll change it when I come back :)

luigio commented 6 years ago

It happens on both modes. I just had it play itself on fast mode and it got stuck on move 69. It just refuses to play a move as Black. If I enter a move for Black manually, it replies as White. If I then try to force it to play as Black again, it refuses again.

Uriopass commented 6 years ago

Done :) Was a array index problem, I did move[5] where it was move[4].

luigio commented 6 years ago

Thanks a lot.

You missed one string: "Force Leela pre move registered"

Uriopass commented 6 years ago

Done ! Also interesting to see where people come from, I've logged the referer (where the link was clicked and I got results from all around the world). Some from Google Some from Facebook Some from a german forum about computerchess Some from Talkchess Some from a chess forum about kasparov (in russian) Some from Baidu Some from a russian blog

gsobala commented 6 years ago

Leela has been playing on chessclub.com as redshift for over a day now against almost mostly human opponents, with updated networks as they become available. Bullet rating (usually 1+1 time control) has settled to around 2000 and Blitz rating (4+2) is around 2050. It certainly gives its opponents lots of chances, which they often squander. One GM played 29 bullet games against it winning all except two - 1 loss, 1 draw.

Uriopass commented 6 years ago

I registered on chessclub.com, but I have no idea how I can play her.. The UI is not very intuitive.

jjoshua2 commented 6 years ago

I am using arena to play on fics. I requested a computer account there.

On Sun, Mar 25, 2018 at 2:27 PM, Douady Pâris notifications@github.com wrote:

I registered on chessclub.com, but I have no idea how I can play her.. The UI is not very intuitive.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/glinscott/leela-chess/issues/170#issuecomment-375992093, or mute the thread https://github.com/notifications/unsubscribe-auth/AO6IND_CMF1VW63F7FSTRzNvHpj4LsZ3ks5th-F4gaJpZM4S3rEs .

gsobala commented 6 years ago

@Uriopass Agree about the interface. That’s why ICS slipped from being the market leader to a trailing also-ran. But they do allow comp accounts and I had a legacy username.

To play redshift, well it depends what user interface you use. Leela is plugged in using xboard. From the command line you should type “match redshift 4 2 r” for a rated 4+2 blitz match. You can just type “rematch” to play again.

gsobala commented 6 years ago

On ICS network c9d2f103 signed off with a bullet rating of 1899 and blitz of 1808.

Now upgraded to 75b0a6c1

pw31 commented 6 years ago

@Uriopass: thank you for setting this up, this is very cool! Games look almost human-like, with a mix of really bad (e.g. allowing mate in one) but also a lot of really good moves, sometimes exchanging material for initiative. Is there a way on ICS to get a rating graph as function of time for player "redshift", or more history than just the last 15 games?

gsobala commented 6 years ago

Here is a PGN of all Leela's ICS games since shortly after I started.

I don't think there is a way to get ICS to plot a ratings chart. I will update progress here regularly.

leela.zip

Uriopass commented 6 years ago

http://play.lczero.org/ now displays winrate. :-)

luigio commented 6 years ago

Exposure to "help making" is bad for my English. Should be "help make". :)