op12no2 / lozza

A UCI Javascript chess engine.
GNU General Public License v3.0
46 stars 8 forks source link

Lozza Time Management #11

Closed ginkgo20 closed 1 year ago

ginkgo20 commented 1 year ago

image

Hi! I see Lozza in chess ranking but I want to know how Lozza make move without time management?

op12no2 commented 1 year ago

Hi,

There is no time management in the little user interfaces I wrote for the web - just demos really, but the engine itself does have time management. For CCRL Lozza is run in node.js with UCI commands sent and received over stdio. In this way it can be used in popular (offline) chess UIs like Arena and Winboard. The readme in the release download explains how this can be done.

op12no2 commented 1 year ago

To clarify, when I say it has time management, it obeys the UCI protocol. It is the user interfaces themselves that are managing the game as a whole, lozza just gets a UCI message saying something like 'here are the moves so far, you have N seconds left overall and the time increment is M seconds'. There is some simple logic in lozChess.go() to decide how long to take on a move based on the UCI message.

op12no2 commented 1 year ago

No, you need to implement the UCI protocol.

https://www.wbec-ridderkerk.nl/html/UCIProtocol.html

Cheers, Colin

https://airbnb.com/h/coastalchalet

On Fri, Jun 9, 2023 at 9:23 PM ginkgo20 @.***> wrote:

I want to write Lozza engine for c++ language but I'm not sure that I can write time management for it. Can engine participate in chess tournament without time management?

— Reply to this email directly, view it on GitHub https://github.com/op12no2/lozza/issues/11#issuecomment-1585087559, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFQ5NPH4VMDAYDG3LXKY4DXKOA2JANCNFSM6AAAAAAY7QMSZM . You are receiving this because you modified the open/close state.Message ID: @.***>

ginkgo20 commented 1 year ago

Thanks Colin