简体   繁体   English

在 python-chess 库中:“white_clock,white_inc black_clock,black_inc”由库内部管理? 还是我需要自己更新?

[英]in python-chess library: "white_clock, white_inc black_clock, black_inc" is internally managed by library? or i need to update it myself?

I'm working with python-chess library, i need to know in python-chess library: "white_clock, white_inc black_clock, black_inc" is internally managed by library?我正在使用 python-chess 库,我需要在python-chess 库中知道: “white_clock,white_inc black_clock,black_inc”是由库内部管理的? or i need to update it myself?还是我需要自己更新?

i have a code like this:我有这样的代码:

limit = chess.engine.Limit(white_clock=10, black_clock=10)
engine_res = await engine.play(board, limit)

So library will update its click by itself or i need to change the value in limit every time myself?所以图书馆会自己更新它的点击,还是我每次自己都需要更改限制值?

Also how to print remaining time of like say: white_clock还有如何打印剩余时间,比如:white_clock

You have to manage it yourself.你必须自己管理它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM